Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you change which language the built in Spell Checker uses in Visual Studio 2022?

I've recently updated my Microsoft Visual Studio Professional 2022 to version Version 17.5.2 and now get loads of spelling errors.

Is there a way to change the spell checker to use British English?

The flood of warnings for "Spelling error - Colour is not a word" is not helpful at all.

My windows language and region settings are set to English (United Kingdom).

like image 496
Smartie Avatar asked Nov 22 '25 10:11

Smartie


2 Answers

Windows needs to have the correct language pack installed.

Use powershell or the settings ui of windows to get things set up and restart visual studio.

Setup using "Powershell"

PS C:\> Install-Language en-gb

Setup using "Windows setting UI"

Settings > Time & Language > Language > Add a language > "English (United Kingdom)" > Next > Install

Picky .editorconfig parser

I found out that the .editorconfig parser is quite picky, try to start with a minimal version like that:

[*]
spelling_languages = en-US,en-GB
spelling_exclusion_path = .\exclusion.dic
like image 72
stefan.seeland Avatar answered Nov 25 '25 11:11

stefan.seeland


You can configure the spell checker through an .editorconfig file, as stated in the blog post about the spell checker here:

spelling_languages = _language_[,_language_]
(Example: = en-us,fr-fr)

I believe in your case, you want it to be:

spelling_languages = en-gb

The documentation also states the proper language pack must be installed, or it won't work (sounds like you already have that taken care of):

Note that the fr-fr language pack must be installed on the user’s machine or Visual Studio will incorrectly flag any French words as spelling errors.

like image 43
Timothy G. Avatar answered Nov 25 '25 09:11

Timothy G.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!