最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to add all unknown words by Code Spell Checker to dictionary or ignore them when language is another than engli

programmeradmin3浏览0评论

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 ?

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 ?

Share Improve this question asked Mar 31, 2021 at 9:39 ABCABC 5917 silver badges20 bronze badges 1
  • There are many Code Spell Checker extensions supporting different languages. Check out this link and see whether your language is found on the list. – AnsonH Commented Mar 31, 2021 at 10:48
Add a ment  | 

2 Answers 2

Reset to default 9

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

  1. You can find all words you need and add them into your settings.json file.
  2. You can add another spell checker extension with correct language.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论