How to disable the typo in comment by resharper - resharper

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.

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
ReSharper → Options
Code Inspection → Inspection Severity
Search: Typo
Disable whatever you want

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.

For your question 1:
Maybe what you need is to turn off non-English spell checking only, not turn off all the comments spell checking. Unfortunately, ReSharper doesn't provide such an option to turn off only non-English spell checking.
I've reported this issue to its official document and you can see the discussions here: https://www.jetbrains.com/help/resharper/Spell_Checking.html
ReSharper has an issue to trace this problem: ReSpeller: Ignore Chinese and Japanese: RSPL-6949. So you can just wait for this improvement in the next bugfix.
For your question 2:
I can't find any Chinese dictionaries for spell checking.

The setting is under Resharper -> Options -> Environment -> ReSpeller reference the article below.
https://resharper-support.jetbrains.com/hc/en-us/community/posts/360000537679-Turn-off-Spellcheck-in-ReSharper-VS-2017

Related

How do I get typo warnings in locale-specific strings.xml according to my custom dictionaries in Android Studio?

Same question here, but I'll try to explain it better.
I want Android Studio to give me typo warnings according to my custom dictionaries. Typo inspections are enabled properly. I have already set up my project dictionary and portuguese.dic in settings, and spell checking works fine in code.
It also works in values/strings.xml (the default locale) but it doesn't work in locale-specific xml resources, like values-pt/strings.xml. It gives me warnings for common misspellings for pt language (which it detects automatically), but I want the typo warnings that assume every word is wrong except for the ones present in my dictionaries.
I have tried changing the tools:locale attribute to many values, but the problem remains: this affects only the "common misspellings", not typo spell-checking, which is disabled for the file no matter what I do.
I even tried disabling the Inspection for "common misspellings" (Android/Lint/Correctness/Messages/Spelling error) but it didn't work either.
Is this a bug in IDEA/Android Studio? It seems to be this way by design, but maybe there is a setting or something I'm missing.
Is there a way to enable this check, or some workaround to make it work?
Ideally this should just work in the editor, but if not possible, it would be fine to have at least a gradle script or something that I can run once to make sure everything is OK.

Suppress Resharper Highlight

I'm trying to suppress highlights in ReSharper using ReSharper Platform (not ReSharper product).
Some context:
Exceptional is a ReSharper plugin, that highlights undocumented exceptions among other useful things. In some cases, these highlights are safe to be "suppressed".
Currently, suppressing comments aren't working: https://github.com/CSharpAnalyzers/ExceptionalReSharper/issues/37
I can suppress it by looking for the suppression comments (e.g.: // ReSharper disable once ExceptionNotDocumented) and simply not adding the highlight to the DefaultHighlightingConsumer, however, I'm not convinced that the platform doesn't have a simpler way to do this.
Is there a simple way to make ReSharper consider these suppressing comments?
Thanks in advance.
With help from #citizenmatt I've finally come to the solution.
A change in the API (starting from 2016.1) has introduced a new HighlightConsumer implementation named FilteringHighlightConsumer. Using this implementation will consider all suppressing comments.
Here is the link to Matt's answer: https://resharper-support.jetbrains.com/hc/en-us/community/posts/206559159-10-1-EAP-and-RegisterConfigurableSeverity?flash_digest=1939ba6f66e30d494edb8f0d6a902eab4b198342

ReSharper intellisense does not display documentation

Any idea why I'm not getting any documentation to go along with my ReSharper IntelliSense? If I go to the ReSharper options and enable the Visual Studio IntelliSense instead, I get the proper documentation when going through the members in the IntelliSense pop up. If I re-enable the ReSharper IntelliSense, I now get the ReSharper IntelliSense pop up sans documentation.
Go to ReSharper | Options -> Environment | IntelliSense | Completion Appearance. Check Show member signatures and Show summary.
For those who, like me, tried the solution provided above and it didn't work. I found this article and it did the trick for me.
Go to Tools - Options - Text Editor - C# (or all Languages, or whatever you need).
In the general section, the options Auto list Members and Parameter information must be enabled. (I suppose only Parameter Information would be fine to, but i enabled the other one anyway as its a nice feature).

Why do Visual Studio 2012 and ReSharper 7 forget to display Intellisense tooltips?

I noticed a strange behaviour in my VS2012 installation. I use VS2012 Pro and ReSharper 7. Intellisense is just not showing code suggestions anymore. I found a few related questions in my research but they always had a slightly different setup going and none could solve my problem:
Intellisense is working but, it's not showing the tooltip about selected member functions/Properties anymore.
If I take a look at the C# Text Editor Settings in
Tools -> Options -> Text Editor -> C# -> General
Most of the times the two necessary boxes Auto List Members and Parameter Information are selected. However, code suggestions in Intellisense don't work. Sometimes, when I look at the described settings, they are unselected.
Selecting them will make code suggestions work as in VS2010 but, only once. When I check the settings afterwards, they are most likely still selected, but code suggestions are not working anymore.
Some people suggested deleting the %AppData%\Roaming\Microsoft\VisualStudio\11.0 Folder, which did not work for me. I also tried to reset all changes, which also didn't help at all.
Tools -> Import and Export Settings -> Reset
What in the world could make Visual Studio to just forget its settings and trigger such an irrational behavior?
-edit-
I display the code suggestions by pressing CTRL+Alt+Space. However, I have to press that shortcut every time I want to see the suggestions. It has to be possible to automatically display them every time, when possible?
I was having a similar problem, but I kept overlooking one small ReSharper Intellisense setting. I would double check that you have Symbol completion on in
ReSharper | Options | Intellisense | Completion Characters
Check out the answer with screenshots.
Thanks for all the tips, I figured out what I had missing:
I had to enable "Completion Appearance" -> "Show Summary".
I also accepted Anthonys answer because he linked to a detailed post with screenshots that shows all steps necessary. (Although the thing I had missing is not mentioned there)
ReSharper uses it's own code suggestions that override Visual Studio ones, that could be the reason why the ones in the Visual Studio settings may be disabled. Please check ReSharper options at ReSharper -> Options -> Environment -> IntelliSense. Maybe they are turned off there. If your ReSharper options are turned on but you still have no intellisense, then please ReSharper's support at http://www.jetbrains.com/support/

How to add custom code analysis in ReSharper

I'm new to ReSharper.
For those who uses Resharper, is there a way I can add custom code analysis rules?
For example I might have a rule say All private variables should start with letter "m". How can I add this to Resharper so if I violate this, it can shows as a warning or an error?
I know the question is old, but for all folks coming from google like me:
Resharper -> Options -> Code inspections -> Custom Patterns
There you can create your own rules for highlighting patterns or offering substitutions. This is for ReSharper 8. I'm not sure from which version this option is there.
Just to expand on what #AakashM notes above: this can be specified in ReSharper Options | Languages | (either Common or C# or whatever) | Naming Style.
If you click on Advanced Settings, and then double-click on one of the "entity descriptions", there is a far larger selection of possible entities (including events, namespaces etc) , together with access rights (private, protected, etc) and so on, for which you can define prefix, suffix and casing rules.
You can write your own plugins for ReSharper. Take a look at here:
http://stylecopforresharper.codeplex.com/
This is similar to what you're asking for. It might even do what you want. Not sure since I'm not a big StyleCop user.
Also take a look at the first in my series of blog posts coming on ReSharper plugins:
http://hadihariri.com/2010/01/12/writing-plug-ins-for-resharper-part-1-of-undefined/

Resources