ReSharper 2019.2 Help

Naming Style

ReSharper | Options | Code Editing | C# | Naming Style

This page of ReSharper options defines symbol naming rules for C#.

ReSharper helps you define, control, and apply naming style for symbols in your code. Naming style is implemented as a set of rules, each of which targets specific identifiers with the set of constraints. Each rule can have one or more associated styles that define suffixes, prefixes, capitalization of compound words, and so on.

These rules are taken into account when ReSharper produces new code with code completion and code generation features, applies code templates and performs refactorings. ReSharper also helps you detect and fix violations of naming rules. If necessary, the automatic checkup of naming rules can be configured or disabled.

Item

Description

Enable 'Inconsistent Naming' inspection

This checkbox toggles the Inconsistent Naming inspection in C#, VB.NET, JavaScript, TypeScript and XAML.

Use auto-detected values

If this checkbox is selected, ReSharper will do the following:

  1. Detect naming rules based on the symbol naming in the newly opened solutions.

  2. Change preferences for the rules where detected style differs from your current settings.

  3. Save the modified naming rules to the 'Solution personal' settings layer so that these settings only affect the current solution.

  4. Highlight the automatically-set naming rules with yellow:

    ReSharper highlighting automatically-set naming rules with yellow

Edit

Click this button, or double-click a list entry, to edit the selected naming rule using the Edit Rule Settings dialog. For details on editing naming rules, see modifying default naming rules .

Advanced settings

Click this button to create or manage custom naming rules using the Advanced Naming Settings dialog. See creating a custom naming rule for details.

Last modified: 18 November 2019