valentjn / vscode-ltex

LTeX: Grammar/spell checker :mag::heavy_check_mark: for VS Code using LanguageTool with support for LaTeX :mortar_board:, Markdown :pencil:, and others
https://valentjn.github.io/ltex
Mozilla Public License 2.0
800 stars 27 forks source link

Ignoring of subenvironment #862

Open Sandra4804 opened 10 months ago

Sandra4804 commented 10 months ago

Hello,

I have tried to ignore subenvironments like "\pgfplotstableset{}" and "\pgfplotstabletypeset[]" for the spelling check, due to the main document is in naustrian and in these enviroments of course english needs to be used.

i have tried the following:

"ltex.additionalRules.motherTongue": "de-AT", "ltex.language": "de-AT", "ltex.latex.environments": { "table": "ignore", "\pgfplotstableset{}": "ignore", "pgfplotstableset{}": "ignore", "pgfplotstableset": "ignore", },

The table-enivronment works, so "\pgfplotstabletypeset[]" isn't that much of a problem but for "\pgfplotstableset{}" i don't have a workaround.

I have attached a short picture, so that its easier to understand.

Best regards

Showcase