vscode-spell-checker icon indicating copy to clipboard operation
vscode-spell-checker copied to clipboard

How to bulk-resolve many spelling errors at once?

Open justingrant opened this issue 5 years ago • 6 comments

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.

justingrant avatar Jun 25 '20 15:06 justingrant

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

Jason3S avatar Sep 23 '20 09:09 Jason3S

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!

justingrant avatar Sep 24 '20 00:09 justingrant

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

devinrhode2 avatar Sep 30 '22 18:09 devinrhode2

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

devinrhode2 avatar Sep 30 '22 19:09 devinrhode2

@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 avatar Oct 01 '22 10:10 Jason3S

@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

Jason3S avatar Oct 01 '22 10:10 Jason3S