vscode-spell-checker icon indicating copy to clipboard operation
vscode-spell-checker copied to clipboard

Latex Extension

Open isentropic opened this issue 7 years ago • 6 comments

It would be nice to have latex syntax excluded from the Spell check

isentropic avatar Nov 14 '17 08:11 isentropic

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.

jackwickham avatar Mar 25 '18 18:03 jackwickham

Is this still an issue? Do you have some examples where the current LaTex defaults do not work?

Jason3S avatar Mar 26 '18 07:03 Jason3S

I added the filter ages ago, but I've just checked and it does work correctly without it :+1:

jackwickham avatar Mar 30 '18 20:03 jackwickham

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?

werunom avatar Jul 20 '18 06:07 werunom

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

werunom avatar Jul 20 '18 09:07 werunom

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?

PabloLION avatar Feb 03 '22 18:02 PabloLION