On this page of ReSharper options, you can configure the behavior of virtual formatter.
tip
You can configure the color and font size of inlay hints — the font size can be set on the Environment | Inlay Hints | General page of ReSharper options Alt+R, O, the font color — in Visual Studio options: go to Tools | Options | Environment | Fonts and Colors and find the ReSharper Inlay Hint in the list of display items.
Fix alignment for Inlay Hints
When inlay hints are enabled, you can use this option to align multiline statements by actual code rather than by hints. For example:
The option is disabled:
The option is enabled:
Enable Virtual Formatter
Enables Virtual Formatter that displays the source code in the editor according to your formatting preferences without actually changing its formatting.
Show real whitespaces on top of virtual ones
Use this selector to visualize real whitespaces used in the source code.
When set to Always or When the caret is near, whitespaces affected by the Virtual Formatter are visualized with dots. In the illustration below, the code is indented with 2 whitespaces and Virtual Formatter indent is set to 6 whitespaces:
Use dedicated Virtual Formatter settings
If this checkbox is selected, Virtual Formatter will use settings defined on the Code Editing | C# | Virtual Formatting Style | Tabs, Indents, Alignment and Code Editing | C# | Virtual Formatting Style | Braces Layout options pages. Otherwise, general formatter settings will be applied.
You may want to use this option if you are working on the solution in a team, and general formatting settings are taken from the team-shared settings layer or from EditorConfig. In this case, you can configure Virtual Formatter settings to your liking without affecting the team-shared settings.
note
ReSharper's settings are saved in settings layers, which allow you to have different settings for different solutions and to share your settings with your team.