Vscode-spell-checker: Better Latex support

Created on 23 Dec 2017  路  6Comments  路  Source: streetsidesoftware/vscode-spell-checker

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.

enhancement

Most helpful comment

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

All 6 comments

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

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

This is the config file used for LaTeX

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

@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.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fgarcia picture fgarcia  路  3Comments

gandalfsaxe picture gandalfsaxe  路  3Comments

ahmadyousefdev picture ahmadyousefdev  路  3Comments

mgroves picture mgroves  路  5Comments

gandalfsaxe picture gandalfsaxe  路  6Comments