To configure a naming style for predefined entities
  1. Choose ReSharper | Options | Code Editing | C# | C# Naming Style.
    Coding_Assistance__Naming_Style__Options__General_Entities__List
       You can start configuring naming rules right from the text editor where ReSharper detects an incorrectly named symbol. When ReSharper displays a warning or suggestion to rename a symbol, press Alt+Enter and choose Change settings for rule... from the list of quick-fixes. When the Edit Rule Settings dialog box for the corresponding entity opens, proceed with step 4.
  2. In the Naming Style tab, select one of predefined entities.
  3. Click EditCoding_Assistance__Naming_Style__options__Edit_button. The Edit Rule Settings dialog box displays:
    Coding_Assistance__Naming_Style__Options__Edit_Rule_Settings
  4. Configure name prefix, name suffix and naming style for the rule selected in the list at the top of the dialog box.
  5. Optionally, create additional rules for the selected code entity by clicking AddCoding_Assistance__Naming_Style__options__Add_button and configuring prefix, suffix and naming style for the new rule.
      When there are several rules for a single entity, one of them acts as the default rule (highlighted with bold). ReSharper doesn't display naming suggestions if a symbol matches at least one of configured rules. However, if a symbol doesn't match any rules, ReSharper suggests renaming it in accordance with the default rule.
  6. Optionally, reorder the sequence of rules by clicking Move UpCoding_Assistance__Naming_Style__Options__Move_Up or Move DownCoding_Assistance__Naming_Style__Options__Move_Down.
  7. Optionally, remove unnecessary rule by clicking RemoveCoding_Assistance__Naming_Style__Options__Remove.
  8. Clear the Enable inspections check box to prevent ReSharper from inspecting the selected code entity for naming style compliance. This setting applies to all naming rules for the current entity.
  9. Click OK to close the Edit Rule Settings dialog box.
  10. Click OK to close the ReSharper Options dialog box.
To create a user-defined naming rule
  1. Choose ReSharper | Options | Code Editing | C# | C# Naming Style.
  2. In the Naming Style tab, click Advanced settings. The Advanced Naming Settings dialog box displays:
    Coding_Assistance__Naming_Style__Options__Advanced_Settings
  3. Click AddCoding_Assistance__Naming_Style__options__Add_button to create a custom naming rule. The Edit Extended Naming Rule dialog box displays:
    Coding_Assistance__Naming_Style__Options__Edit_Extended_Naming_Rule
  4. In the Rule Description text box, specify a name for the new extended rule.
  5. In the Affected entitites area, select code entitites that the extended rule should cover.
  6. Use Access rights and Static/non-static areas to further constrain the scope of the extended rule.
  7. In the Naming style tab, configure one or more rules according to steps 4-6 of the procedure above: To configure a naming style for predefined entities.
  8. Click OK to close the Edit Extended Naming Rule dialog box.
  9. Click OK to close the ReSharper Options dialog box.
To create a list of abbreviations
  1. Choose ReSharper | Options | LCode Editing | C# | C# Naming Style.
  2. In the Naming Style tab, click Advanced settings. The Advanced Naming Settings dialog box displays:
    Coding_Assistance__Naming_Style__Options__Advanced_Settings
  3. Add abbreviations that ReSharper should not warn you about in Edit abbreviations as plain text (UPPER CASE only) area. Use returns, commas, semicolons or spaces as delimiters.
  4. Click OK to close the Advanced Naming Settings dialog box.
  5. Click OK to close the ReSharper Options dialog box.
   You can also add abbreviations to the list from the text editor. When ReSharper detects a symbol name that contains an abbreviation which is not in the list, click Alt+Enter and select Add... to the abbreviations list:
Coding_Assistance__Naming_Style__add_to_abbreviations
To override common naming style with a language-specific naming style
  1. Choose one of the following:
    • ReSharper | Options | Code Editing | C# | C# Naming Style
    • ReSharper | Options | Code Editing | Visual Basic .NET | VB Naming Style
  2. Click Override common settings at the top of the selected tab.
  3. Configure a language-specific naming style as shown in procedures To configure a naming style for predefined entities and To create a user-defined naming rule above.