Jump to content

QESTNET Internal:Developer Resharper

From QESTonline
Revision as of 02:32, 17 July 2015 by David.lucas (talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)

Resharper

What is it?

A third party extension for Visual Studio by JetBrains which is designed to make Visual Studio a better IDE and you more productive.

Documention

Go to https://www.jetbrains.com/resharper/help/Introduction__Index.html for Resharper Help.

Options

In Visual Studio open the menu item Resharper and select Options. Here is where all of Resharper's extensions can be turned on or off.

Initial option setup

  • Code Inspection -> Inspection Severity -> XAML -> Set “Unresolved binding path when DataContext is known” to “Error”. That will mean you get a full error if any of the bindings to entity properties in the XAML are not valid.

These are useful to reduce warning spam:

  • Code Inspection -> Inspection Severity -> All -> Constraints Violations -> Namespace does not correspond to file location -> Set to "Do not show".
  • Code Editing -> C# -> Code Style -> Instance members qualification -> Use “this.” Qualifier for -> set to Field, Property, Event, Method. QN has liberal use of “this” and you’ll get warnings about them being unnecessary otherwise.
  • Code Editing -> C# -> Naming Style -> Instance fields (private) -> Remove the underscore from the start of “lowerCamelCase”. Again we don’t use these in QN so it will give warning about them.

Solution Wide Analysis

Once you have opened a solution in Visual Studio. Right click on the circle in the bottom right hand corner of Visual Studio. Select "Start Solution Wide Analysis". This will turn on Resharper for this solution. It will be constantly running in the background. Any errors or warnings will be highlighted in the code like normal but can be accessed as well via the circle.