ReSharper 2019.2 Help

Syntax Highlighting

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

ReSharper syntax highlighting for C# with default colors looks as follows:

ReSharper: Syntax highlighting in C#

To toggle ReSharper syntax highlighting

  1. Select ReSharper | Options in the main menu or press Alt+R,,O, then choose Code Inspection | Settings on the left.

  2. Use the Color Identifiers checkbox to enable or disable ReSharper syntax highlighting.

  3. 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 list. For more information, see manage and share resharper settings.

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

This feature is supported in the following languages and technologies:

Language: C# Language: VB.NET Language: C++ Language: HTML Language: ASP.NET Language: Razor Language: JavaScript Language: TypeScript Language: CSS Language: XML Language: XAML Language: Resx Language: Build Scripts Language: Protobuf Language: JSON
Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is available Feature is 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.

Last modified: 18 November 2019