Inspect the whole solution for naming style compliance

Skip to end of metadata
Go to start of metadata

If you want your code base to employ a consistent naming style, you can use ReSharper to configure your preferences and then search for all the places in your code where the naming rules are broken.

To begin with, open up the ReSharper Options dialog, and navigate to Naming Style either the common settings or, if you need language-specific definitions, then to the one under the corresponding language.

This is the place where you can redefine the naming rules for particular elements. Simply press Edit to change the defaults for a particular code element:

Once you’re done, close the Options dialog and choose ReSharper | Inspect | Code Issues in Solution/Project to find all code issues. You will be presented with a categorized tree of all the issues in your code. Here, simply locate the Constraint Violations section, and you will see a list of naming mismatches in the project:

Double-clicking each of these will take you to the line of code where the problem occurs. Naturally, ReSharper is there to help you adjust the name of the corresponding identifier:

  • No labels