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# ReSharper: Syntax highlighting in C#](https://resources.jetbrains.com/help/img/dotnet/2022.1/Coding_Assistance__Syntax_Highlighting__CSharp.png)
Toggle ReSharper syntax highlighting
Select Alt+R O, then choose on the left.
from the main menu or pressUse the Color Identifiers checkbox to enable or disable ReSharper syntax highlighting.
Click Save in the Options dialog 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.
Configure colors and fonts
Choose
from the menu and then go to page.In Display items, scroll down the list until you find items that begin with
ReSharper
. Explore the list to view or edit formatting and highlighting of ReSharper items.
This feature is supported in the following languages and technologies:
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.