ReSharper Web Help

ReSharper provides a set of features that helps you handle and customize colors.

Any color value is underlined with a respective color, no matter how the color is defined. If you hover the pointer over the color value, you get some additional information.

Coding_Assistance__Color_Assistance__Colors

To change color value using select color dialog box
  1. Place the caret at the color value supposed to be changed.
  2. Do one of the following:
    • Select the current value and press Ctrl+Space. Choose a new value and press Enter. A new value will replace the old one.
    • Press Alt+Enter to display the drop-down list that includes available context actions and quick-fixes. Select Pick color from palette from the drop-down list. The Select Color dialog box opens. Define a new value and press OK.

In the Select Color dialog box, you can choose colors using three models: AHSB, Web and ARGB. If you know the numeric value of the color you want, you can enter it into the appropriate text field. You can use the color slider and the color field to choose a color. As you adjust the color using the color field and color slider, the numeric values are adjusted accordingly. When you select a color in the color box, it simultaneously displays the numeric values for AHSB and ARGB, and hexadecimal numbers.

ReSharper_by_Language__CSS__Select_Color

By default, ReSharper highlights color usages, but you can easily turn this off.

To switch highlighting off
  1. On the main menu, choose ReSharper | Options.
  2. The Options dialog box opens. Click Settings on the left pane of the dialog.
  3. Clear the Highlight color usages check box on the Settings pane.
  4. Click Save or Save To to apply changes.

This feature is supported in the following languages/technologies:

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

Tip

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