📜 ⬆️ ⬇️

ReSpeller - spelling plugin for ReSharper

Many developers using different IDEs from JetBrains - Idea, PyCharm, etc. - know and actively use the built-in spell checker. However, unfortunately .Net developers, Resharper lacks such functionality out of the box.
So I decided to write my own plugin for Resharper to check the spelling in the code.

A reasonable question: why do this if there are several spell checkers for Visual Studio, as well as a couple of similar plugins for Resharper himself?

Spell checkers directly for Studio work only at the source text level, i.e. There can be no refactoring when correcting an error in the identifier. As for the existing plugins for Resharper, they work quite well, but it will be described a little further than my plugin is more convenient and better.

How it works


ReSpeller works, as any spell checker should work - it highlights errors wherever possible (or rather, where it is indicated): in identifiers, comments, string literals, in attribute values, in free markup text in XML, offering various options for correction
image
')
The most significant difference from other plug-ins lies in the process of correcting typos in the identifier. If other plug-ins offer a regular context menu with fixes, ReSpeller displays the “native” Rename-refactoring menu, as if you pressed F2:
image

In the case of a non-local declaration, we will see a familiar dialog with variations of names.
image

And what if the name was used in lines or comments, you ask? After all, other plugins do not handle this situation (although they don’t handle it :)). And ReSpeller handles, because as it is able Rename-refactoring Resharper.

Programming language support


ReSpeller supports many programming languages ​​and markup languages. Among them:

Multilingual


ReSpeller provides spell checking in multiple languages.
image
You can independently install the dictionaries you need (instructions here ).
It should be noted that, thanks to Hunspell's excellent spelling engine and its special dictionaries, when checking words, their various forms, suffixes and prefixes, etc. are correctly processed.

Notification levels


In the plugin settings, you can separately specify the levels of importance of the backlight for different elements of the source code.
image
For example, you can turn off the highlighting of typos in the comments if it bothers you.

Check and highlighting in the rename dialog


Another “proprietary” feature of my plugin. ReSpeller can show typos right in Resharper’s renaming dialog.
image
I admit, I had to tinker a lot to implement it.

Check at project / solution level


There are situations when a developer writes a public API, and typos in its various identifiers, if not to say that they are unacceptable, they certainly are a very bad tone. To avoid this situation will help the analysis of the level of the entire project. Opening ReSharper | Inspect | Code Issues in Project / Solution , you can see a list of all the typos in the project / solution.
image

Where to get


The plugin comes in two versions - Free and Pro. Differences between versions, as well as links can be found on the official website of the best spell checker for Resharper

Found bugs, as well as ideas for new features, you can submit to the bug tracker .
For all other questions, you can contact the addresses listed in the Contacts section of the site, or directly to me Artem Bukhonov <nerzhulart (at) gmail.com>

Source: https://habr.com/ru/post/166611/


All Articles