vscode-spell-checker
vscode-spell-checker copied to clipboard
Latex Extension
It would be nice to have latex syntax excluded from the Spell check
You can exclude most latex syntax problems by adding
"cSpell.ignoreRegExpList": [
"\\\\[a-z]+",
"\\\\(begin|end)\\{[a-z]+\\}",
],
to your user settings, but I agree that it would be nice if it was built in.
Is this still an issue? Do you have some examples where the current LaTex defaults do not work?
I added the filter ages ago, but I've just checked and it does work correctly without it :+1:
I found that in latex files, spell correction works fine in most cases; but for the command \textcite{<bibkey>}
its not working. For instance \textcite{ghose1990}
, "ghose" is linted for spell correction.
Can you please exclude spell checking for this command as well?
Tried the available regex escapes available in the various discussions for the problem with \textcite{}
command
\\\\\\w*(\\[.*?\\])?(\\{.*?\\})?
--> works
However, \\\\(begin|end)\\{[a-z]+\\}
does not work
Actually the best practice is to use a LaTeX command dictionary.. That's how I do it. Problem is if I'm not with cloud drive, it's pretty hard to sync. Maybe @Jason3S can consider adding a setting for this?