streetsidesoftware / vscode-spell-checker

A simple source code spell checker for code
https://streetsidesoftware.github.io/vscode-spell-checker/
Other
1.4k stars 126 forks source link

Setting list of enabled extensions #1616

Closed brauliodiez closed 2 years ago

brauliodiez commented 2 years ago

I have search for this feature but not found it (maybe I'm missing something)

Scenario:

I would like to enable this plugin by default only when the file opened belongs to some specific extensions ['.md', '.mdx', '*.,txt']

So far I have checked and you can enable/disable spell checker globally / per workspace or once a file is opened in the bottom area of the VSCode editor.

Possible approach:

Could it be possible to add a setting to the extension where by default you get all the given extensiones, and you can customize it?

Jason3S commented 2 years ago

There are a couple of ways:

By File Type

Remove the Language Ids you do no want to check.

image

or

image

By Glob

There is a files setting that allow you to specify which files are checked.

image

I suggest using a .cspell.json file in your project.

{
  "files": ["**/{*.md,*.mdx,*.txt}"]
}
Jason3S commented 2 years ago

Please re-open if this does not answer your question.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.