Global Ignore Spelling Directive in Visual Studio

442 Views Asked by At

In Visual Studio 2022, you can add the directive // Ignore Spelling: WordToIgnore in a file to ignore said word. Is there a way to do this globally for the solution? I do not want to add it to the Ignore Words File because I do not want to affect other solutions. I also would like to not add this line of code to every file that I want it in.

1

There are 1 best solutions below

0
Mike Nakis On

A claim made within this question is in direct conflict with fact:

There is no such thing as a // Ignore Spelling: "directive" in Visual Studio 2022.

I have never seen such a "directive" being mentioned in any documentation I have read, (and I have read a lot,) and an attempt to try to include such a directive within my code to see if by any miracle it works was just a waste of time: of course, it does not work.

Maybe some plugin used by the author supports such a "directive".

(Perhaps "Visual Studio Spell Checker" by EWSoftware.)

Which means that the answer that the author is seeking must lie within the documentation of that plugin.

Visual Studio 2022 comes with its own built-in spell checker, which is configurable via .editorconfig, and which can be configured to learn ("exclude" in microsoft parlance) words at the solution scope or even at the project scope. However, I cannot recommend using the Visual Studio 2022 built-in spell checker, because it does not work for me.)