Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add all unknown words by Code Spell Checker to dictionary or ignore them when language is another than english?

I am using Code Spell Checker (streetsidesoftware.code-spell-checker) VSC extension to check spelling, but I get warning for a lot of words because the ReactJS app interface is in another language than english.

For every word I can add it to the user or workspace dictionary, but for many words this is a pain and I want the "PROBLEMS" tab in VSC to show 0 errors/warnings/info before deploy.

How can I solve this issue ?

like image 913
ABC Avatar asked Nov 14 '22 22:11

ABC


1 Answers

If the project is in another language, as @AnsonH mentioned you can install dictionaries in other languages.

Alternatively, you can run cspell-cli to return all of the unknown words so that you can copy and paste them into cSpell.words in your settings.json:

npx cspell-cli "src/**/*.{json,ts,tsx}" --words-only --unique --no-progress

like image 121
svict4 Avatar answered Feb 15 '23 22:02

svict4