How to set color for placeholders in format string

I have Resharper installed in Visual Studio, and I use the standard "dark" theme, and somehow I managed to change something so that the characters "{0}" in the format string no longer differ from the rest of the string.

For example, in the following line:

Console.WriteLine("Hello {0}", Environment.UserName); 

The recorded line is exactly the same as the rust color (as it appears in this SO-editor), whereas previously '{0}' was highlighted in a bright greenish color.

EDIT

The settings in the "String Formatting Formatting Element" section are displayed correctly:

enter image description here

In addition, R # code annotations are set to JetBrains.Annotations and set to the default value:

enter image description here

Will another option override this? Is there an easy way to simply reset all defaults back?

+7
c # visual-studio color-scheme resharper
source share
2 answers

I found the item in the font change dialog. It was a nightmare, hope this helps.

enter image description here

+1
source share

As you already noted, Resharper knows which color to use for this, as configured here:

Parameters> Environment> General> Fonts and colors - parameter String parameter <File format> .

However, R # knows which methods to apply this color using its internal Code Labeling function.

Check under Reseller> Options> Code Verification> Code Annotations and make sure that the JetBrains.Annotations flags are checked and that it is selected as the default annotation namespace at the bottom of this screen.

0
source share

All Articles