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

ability to allow combined words

Open ssbarnea opened this issue 4 years ago • 2 comments

Very often in programming we have keys that are made from concatenating two words and I used spellcheckers that were able to recognize such combinations and to ignore them.

Having to add a huge amount of words to ignore lists is not only annoying but also decreases the performance of the spelling.

Practical examples is****, list***, match***, and these come from public API of famous libraries, even stdlibs.

ssbarnea avatar Jul 25 '20 07:07 ssbarnea

This is already supported. See the "camelCase" discussion. See also the "enableCompoundWords" setting to allow not just "isFound" but also "isfound".

BenHocking avatar Aug 15 '20 18:08 BenHocking

The challenge with enableCompoundWords is that it considers some clearly misspelled words to be considered correct. See #345

It might be nice to allow for common patterns like is* and error* to allow isset or errorcode while being able to avoid missing errors like avalible.

Jason3S avatar Aug 17 '20 05:08 Jason3S

Closing as stale.

Note: It is possible to add compoundable words to your dictionary:

cspell.config.yaml

words:
  - *error*
  - *code*

This will allow compounds like: errorcode, codeerror, codecode.

Jason3S avatar Nov 11 '22 14:11 Jason3S

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.

github-actions[bot] avatar Dec 12 '22 05:12 github-actions[bot]