For Resharper can't support Chinese well that all of my comment will be suggest changed.
But I don't think I need to do it.
Questions 1: how to disable the typo in the comment by Resharper?
Questions 2: where can I find the Chinese dictionary? I find wooorm/dictionaries but I can't find the Chinese dictionary.
By default, ReSpeller is enabled in many of ReSharper’s supported languages. We can enable/disable individual inspections and change severity by searching for “typo” in the settings (under Code Inspection | Inspection Severity). There are many cases where spell checking is important or even critical.
By default, ReSpeller is enabled in many of ReSharper’s supported languages. We can enable/disable individual inspections and change severity by searching for “typo” in the settings (under Code Inspection | Inspection Severity ).
ReSpeller dictionaries. By default, Rider and ReSharper come with a built-in dictionary for English (United States). It uses a dictionary based on Hunspell, which means we can install other languages as well. Being a native Dutch speaker (well, Flemish), I’ve downloaded the corresponding .aff and .dic files and imported it in ReSharper’s settings:
By default, Rider and ReSharper come with a built-in dictionary for English (United States). It uses a dictionary based on Hunspell, which means we can install other languages as well.
Resharper 2018.2.1 bring the ReSpeller that just like with code analysis, ReSpeller scans for spelling mistakes and typos in identifiers, comments, string literals and more, and provides quick-fixes to resolve the problem.
To disable the typo in the comment by Resharper, you should click the Resharper and enter option.
You should select the Code Inspection->inspection severity
and then you should type typo
to search see this image.
You can toggle the Typo in comment
to open or close it.
And the other way is to disable ReSpeller.
You should select ReSpeller
and then you should uncheck it.
See Spell Checking with ReSpeller
Integrated spell checking with ReSpeller in ReSharper and Rider
hunspell/hunspell: The most popular spellchecking library.
Disable the typo by ReSharper
Typo
Disable
whatever you wantIf you want to disable those once per class/interface, you can use the SuppressMessage
Attribute (where CommentTypo
is the inspection you asked for) like so:
[SuppressMessage("ReSharper", "InconsistentNaming")]
[SuppressMessage("ReSharper", "IdentifierTypo")]
[SuppressMessage("ReSharper", "CommentTypo")]
public interface IHaveNoControlOverTheirApi
{
//...
}
You can also suppress code inspections in other scopes if you like.
Have a look at ReSharper's documentation on code inspections to see what kinds of inspections can be disabled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With