streetsidesoftware / vscode-spell-checker

A simple source code spell checker for code
https://streetsidesoftware.github.io/vscode-spell-checker/
Other
1.41k stars 126 forks source link

Better Latex support #167

Open jose-a-sa opened 6 years ago

jose-a-sa commented 6 years ago

VSCode has an awesome extension named Latex-Workshop by James-Yu.

In his GitHub readme.md it reads that we may add

"cSpell.ignoreRegExpList": [
  "\\\\\\w*(\\[.*?\\])?(\\{.*?\\})?",
  "\\$.+?\\$"
]

to vscode-spell-checker settings, but I was hoping that we could get a update with a dictionary for TeX commands.

Jason3S commented 6 years ago

Is there a good repository of sample LaTex files? It helps a lot to have good samples.

Jason3S commented 6 years ago

There is still more work to do for full LaTeX support, but I believe progress has been made.

Jason3S commented 6 years ago

This is the config file used for LaTeX

felixlinker commented 6 years ago

I experienced that spell checking does not work inside arguments. For example, inside a \textit command the text does not get spell-checked.

Jason3S commented 6 years ago

@felixlinker you are right. It skips all arguments except for the following commands: title, color, section, subsection, footnote, chapter, part, caption, emph.

The reason is that the command arguments were the primary cause of false positive spelling errors.

If you have a list of commands that should be added, please let me know.

felixlinker commented 6 years ago

It might be worth adding all \text[a-z]+ like commands to the list.