-1

I'm using vscode extension for spell checking:

https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker

The problem is - I can't include ".todo" files type. (my .todo files are not in any markup language. They are just "plain text").

I tried(none works for me):

  • "cSpell.files": ["**/**.todo"] (also turns off all existing files check)
  • "cSpell.enableFiletypes": [ "*" ] to inclue all fiels types

I notice there is a languages list, but didn't find way to add new one.

starball
  • 20,030
  • 7
  • 43
  • 238
Mero
  • 630
  • 4
  • 12
  • It works for me out-of-the-box with no config at all. Your `.todo` files do say `Plain Text` in the lower right, I assume? – Mark Feb 02 '23 at 23:26
  • @Mark What do you mean by saying "do say Plain Text in the lower right"? Sorry, I don't get it – Mero Feb 02 '23 at 23:51

2 Answers2

0

Try adding the following cSpell override to your .vscode/cSpell.json file:

{
  "name": "lorem ipsum",
  "enabledLanguageIds": ["plaintext"], // etc.
  "overrides": [
    {
      "filename": "**/*.todo",
      "languageId": "plaintext"
    }
  ]
}
starball
  • 20,030
  • 7
  • 43
  • 238
  • Thx for your answer, but not works for me. Also I tried to use "filename" + "language": "en" and attach it for one more file(jsut in case) - ".gitignore", this did't work either. For key "languageId" have tried "javaScript", "markdown", "plaintext". All this was tried to apply from setting.json(vscode user settings file) and .vscode/cSpell.json or just cSpell.json in root. – Mero Feb 02 '23 at 23:01
  • Yes, I did try it – Mero Feb 02 '23 at 23:09
0

I found out, that by default spell check extension ignore all files from .gitignore.

In my case solution was to add following Modifications in my vscode user settings:

"cSpell.enableFiletypes": [
  "todo" // enable .todo files checking
],
"cSpell.useGitignore": false, // disable ignoring files from .gitignore

Thanks to everyone who tried to help me!

Mero
  • 630
  • 4
  • 12