ReSharper Help

Syntax Highlighting

ReSharper extends the default Visual Studio's symbol highlighting. Additionally, it highlights fields, local variables, types, and other identifier with specific colors. For example, ReSharper syntax highlighting allows you to easily distinguish between local variables and fields in your code.

The default syntax highlighting for C# looks as follows:

Coding_Assistance__Syntax_Highlighting__CSharp

To toggle ReSharper syntax highlighting

  1. On the main menu, choose ReSharper | Options . The Options dialog box opens.
  2. Open the Code Inspection | Settings page.
  3. Select the Color Identifiers check box to enable ReSharper syntax highlighting or clear the check box to disable this feature.
  4. Click Save to apply the modifications and let ReSharper choose where to save them, or save the modifications to a specific settings layer using the Save To drop-down list. For more information, see Managing and Sharing ReSharper Settings.

For guidelines on how to configure fonts and colors for ReSharper syntax highlighting, see Configuring Fonts and Colors.

This feature is supported in the following languages/technologies:

C# VB.NET C++ HTML ASPX Razor JavaScript TypeScript CSS XML XAML RESX Build Scripts
feature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_available

The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see corresponding topics in the ReSharper by Language section.

See Also

Last modified: 30 June 2015