-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add all words in the current document to dictionary #59
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: |
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 |
Just an addendum to this feature, would be nice to have a right-click-menu item named |
@lucasbento good idea. |
I have taken the suggestions and added this feature in the following way:
The extension will split the words and add them to the chosen dictionary. |
@Jason3S Sorry for coming back to this after such a long time. Thanks for implementing it. I just tested it in a couple new projects. It's proving very useful indeed. But I have a concern. This seems to add all words in the selected text to the dictionary. While it does solve the problem, but it seems a bit excessive, no? A typical code file may have thousands of words. Most of them already recognized by the default dictionary, so adding them is redundant. It may also have performance impact as the dictionary grows. I currently, in all my usage of this plugin over the years, have accumulated ~600 custom words. But using this to add all words in a single file of a new project almost doubled it. Although the list does plateaus after adding the most used words in English. It's fine for now, and does the job well, but I think it'd be nice to improve this feature if possible by only adding the custom words. |
Or some time we are starting an existing big project and old words is not important. This feature is very useful in this situation. Thanks ❤ |
Something to try. Use the cspell command line tool to get the list of words for a new project. The following will search all files (the npx cspell "**" --no-problems --no-progress --unique > words-found.txt The code spell checker extension uses the CSpell Library to do the spell checking. Which means both |
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. |
Please add an option to add all words in the current document (that are deemed incorrect) to the project/global/custom dictionary.
The text was updated successfully, but these errors were encountered: