streetsidesoftware / vscode-spell-checker

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

How to bulk-resolve many spelling errors at once? #508

Open justingrant opened 4 years ago

justingrant commented 4 years ago

I just installed vscode-spell-checker and now my projects have hundreds of light-blue squiggles to work through. Is there a way to apply a vscode-spell-checker action (e.g. add to workspace dictionary) to multiple problems at once? I can multi-select problems in the Problems pane, but when I right-click on the multi-selected group the selection goes away.

Jason3S commented 4 years ago

I'm not sure if this is possible. VS Code controls the selection and the menu options.

justingrant commented 4 years ago

Not sure if the problems pane is the right place to fix this, but the underlying use case is that initial use of the spell checker is daunting on new files. Any help you could provide to make it easier to fix things in bulk would be appreciated!

devinrhode2 commented 2 years ago

There was a thread somewhere (I believe this extension) regarding this exact topic, but I remember it being a much larger/longer thread....

devinrhode2 commented 2 years ago

Ok, found this, but still doesn't feel like the thread I remember: https://github.com/streetsidesoftware/vscode-spell-checker/issues/529

Jason3S commented 2 years ago

@devinrhode2,

You can select the whole document and then run the command: Spell Add Words to Dictionary

image

It will provide a list of words to be added. By default, all of them are selected.

Jason3S commented 2 years ago

@devinrhode2,

You can also use the cspell cli:

cspell --no-progress --words-only --unique "**/*.md" >> project-words.txt

See: https://github.com/streetsidesoftware/cspell/issues/2301