Vscode-spell-checker: Add all words in the current document to dictionary

Created on 15 Jan 2017  路  8Comments  路  Source: streetsidesoftware/vscode-spell-checker

Please add an option to add all words in the current document (that are deemed incorrect) to the project/global/custom dictionary.

Done / Fixed FAQ enhancement

Most helpful comment

I have taken the suggestions and added this feature in the following way:

  1. Select the text you want to add to the word list.
  2. Right click on the text and choose which word list to add it to:

    • Add Word to Dictionary

    • Add Word to Global Dictionary

The extension will split the words and add them to the chosen dictionary.

All 8 comments

I understand the desire for this feature. At the same time, I would like to get better idea of what issue you are trying to address. Are you seeing a LOT of words that do not match? Does another language needed to be added? Or is it necessary to turn on compound words?

I use a lot of other people's projects that have words that are flagged as incorrect and I don't necessarily need to, or even can, correct them, so I would rather wish to add all those words in the project dictionary. Some projects also contain words that I would like to add to my user dictionary as well.

Often times there are a LOT of words, I currently have to do this for each word.

My main intention is to clear all spelling related annotations over the vertical scroll bar on the right so it doesn't interfere with other features of it, like code changes, breakpoints, errors etc. edit: although I do want any un-intentionally left spelling errors to be highlighted there.

Just curious, which programming language do you use?

The easiest way to add this feature is to make it an F1 command. Like: F1 + add all word to dictionary. Which will show a possible set of commands to pick from.

Sounds good. I mainly use Javascript.

This would be very useful for me too. A lot of my variable names are flagged (I use abbreviations, such as ivec for the i unit vector). I usually disable spellcheck again after a while because it distracts me (flags too much words, mixes with linting errors etc.), but this feature would make it possible to quickly create your own 'dictionary'. (just installed it, already got a couple of spelling mistakes in my comments!).

Just an addendum to this feature, would be nice to have a right-click-menu item named Add this word to dictionary that shows up when you select a word.

@lucasbento good idea.

I have taken the suggestions and added this feature in the following way:

  1. Select the text you want to add to the word list.
  2. Right click on the text and choose which word list to add it to:

    • Add Word to Dictionary

    • Add Word to Global Dictionary

The extension will split the words and add them to the chosen dictionary.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jose-a-sa picture jose-a-sa  路  6Comments

alallier picture alallier  路  3Comments

floatingpurr picture floatingpurr  路  5Comments

Deilan picture Deilan  路  3Comments

apptimise picture apptimise  路  6Comments