Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable the typo in comment by resharper

Tags:

resharper

For Resharper can't support Chinese well that all of my comment will be suggest changed.

enter image description here

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.

like image 906
lindexi Avatar asked Sep 04 '18 04:09

lindexi


People also ask

How do I enable/disable spell check in ReSharper?

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.

How do I enable/disable respeller?

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 ).

Can I use ReSharper’s built-in dictionary with rider?

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:

What languages do rider and ReSharper support?

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.


3 Answers

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.

enter image description here

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.

enter image description here

See Spell Checking with ReSpeller

Integrated spell checking with ReSpeller in ReSharper and Rider

hunspell/hunspell: The most popular spellchecking library.

like image 189
lindexi Avatar answered Oct 19 '22 20:10

lindexi


Disable the typo by ReSharper

  • ReSharper → Options
  • Code Inspection → Inspection Severity
  • Search: Typo
  • Disable whatever you want
like image 4
Masoud Darvishian Avatar answered Oct 19 '22 20:10

Masoud Darvishian


If 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.

like image 4
mbx Avatar answered Oct 19 '22 22:10

mbx