EWSoftware / VSSpellChecker

A Visual Studio spell checker editor extension that checks the spelling of comments, strings, and plain text as you type. Supports configuration and various languages.
Other
377 stars 65 forks source link

Validate only comments #294

Closed digocesar closed 1 year ago

digocesar commented 1 year ago

How can I configure Spell Checker to validate strings only in comments and regions? I don't want to validate class name, fields and others...

EWSoftware commented 1 year ago

You can turn off the code analyzer in the general settings.

digocesar commented 1 year ago

It worked. Thanks. But I'm using ReSharper to spell check the class name, fields and other differents from comments. And when I disable typo in ReSharper it disables the VSSpellChecker in comment too. Any idea? It is a VSSpellChecker error or is a ReSharper error? For years I have been using both in this way and only now I'm having this problem.

EWSoftware commented 1 year ago

I don't use Resharper but I know it uses NHunSpell as well and depending on which extension gets loaded first determines which one's dictionary gets used. This was discovered recently in fixing a long-standing issue with the Visual Studio text box spell checking option in my extension not working properly. That may be why you're seeing the change in behavior.

In general, they probably shouldn't be used together for spell checking editors since it's a duplication of functionality. Resharper is also more invasive as far the smart tags go so it tends to override the ones from my extension in the editor. They're still there just not accessible. People that do use them both typically only use mine for spell checking the Visual Studio text boxes and solution/project spell checking leaving Resharper to handle the editor.

digocesar commented 1 year ago

My project has comments in Portuguese and code in English. So I use VSSpellChecker for commments and ReSharper for code. I install ReSharper and disable typo in comments. But it disables the VSSpellChecker too. And if disabling ReSpeller feature, it completely disables the VSSpellChecker too. I had tested invert install order. But no luck.

digocesar commented 1 year ago

ReSharper has this registered issue: RSRP-472628 ReSharper suppresses Visual Studio Spell Checker add-on often

Unchecking the option has solved my problem. But I don't know if it has other collateral problems. image