ReSharper 2017.1 Help

Action Indicators and Action List


One of the most noticeable things that ReSharper adds to the Visual Studio text editor are Action Indicators and the Action List. They appear in all file types supported by ReSharper (C#, VB.NET, XML, CSS, JavaScript, ASP.NET, etc.) to notify you about available actions and help you apply them.

In this topic:

Action Indicators

Action indicators - are icons that, depending on your settings, appear in the Action Bar, in the left margin and/or the body of the text editor. These icons identify actions available in the corresponding line and cursor position. If there are several actions available in the same place, the icon corresponding to the action of the highest priority is shown.

There are two types of action indicators: fixed indicators and context-sensitive indicators.

Fixed indicators

Fixed indicators are always shown in the action bar or in the left margin depending on the Enable action bar option (configurable on the Environment | Editor | Editor Appearance) page of ReSharper options. These indicators notify about the following:

  • /help/img/dotnet/2017.1/ThemedIcon.UnitTestingOptionsPage.Screen.[Gray].png - the method is a unit test and you can run and debug it.
  • /help/img/dotnet/2017.1/ThemedIcon.UnitSession.Screen.[Gray].png - the class is a unit test class and you can run and debug containing tests.
  • /help/img/dotnet/2017.1/ThemedIcon.TestMethodSuccess.Screen.[Gray].png - the unit test passed during the last execution.
  • /help/img/dotnet/2017.1/ThemedIcon.TestFixtureSuccess.Screen.[Gray].png - tests in the unit test class passed during the last execution.
  • /help/img/dotnet/2017.1/ThemedIcon.TestMethodFail.Screen.[Gray].png - the unit test failed during the last execution.
  • /help/img/dotnet/2017.1/ThemedIcon.TestFixtureFail.Screen.[Gray].png - at least one test in the unit test class failed during the last execution.
  • /help/img/dotnet/2017.1/ThemedIcon.TestMethodIgnored.Screen.[Gray].png - the unit test was ignored during the last execution.
  • /help/img/dotnet/2017.1/ThemedIcon.TestFixtureIgnored.Screen.[Gray].png - all tests in the unit test class were ignored during the last execution.
  • /help/img/dotnet/2017.1/ThemedIcon.HasImplementations.Screen.[Gray].png - the interface has implementations and you can navigate to these implementations.
  • /help/img/dotnet/2017.1/ThemedIcon.HasOverrides.Screen.[Gray].png - the type is overridden elsewhere and you can navigate to these overrides.
  • /help/img/dotnet/2017.1/ThemedIcon.Implements.Screen.[Gray].png - the member implements an interface method and and you can navigate to it.
  • /help/img/dotnet/2017.1/ThemedIcon.Overrides.Screen.[Gray].png - the member overrides an inherited virtual or abstract member and you can navigate to it.
  • /help/img/dotnet/2017.1/ThemedIcon.Recursion.Screen.[Gray].png - the call is recursive. If this is a tail call, ReSharper suggests a quick-fix to replace recursion with iteration.
  • /help/img/dotnet/2017.1/ThemedIcon.Hides.Screen.[Gray].png - the member hides a member with the same in the base class, without overriding it.
  • /help/img/dotnet/2017.1/ThemedIcon.SpecificCulture.Screen.[Gray].png - the resource is overridden for specific cultures and you can navigate to the derived definitions .
  • /help/img/dotnet/2017.1/ThemedIcon.BaseCulture.Screen.[Gray].png - the resource is defined in the base culture and you can navigate to the definition in the default culture.
  • /help/img/dotnet/2017.1/ThemedIcon.Bookmark3.Screen.[Gray].png - there is a bookmark at this line.
  • /help/img/dotnet/2017.1/ThemedIcon.RunDebug.Screen.[Gray].png - the static method has a run configuration.
  • /help/img/dotnet/2017.1/ThemedIcon.Switch.Screen.[Gray].png - if you use ReSharper C++ or ReSharper Ultimate, this indicator appears in C++ header and source files and notifies you that there is either declaration/definition the current symbol or primary template/specialization for the class template. You can use this indicator to navigate to the corresponding items.

Caret-sensitive indicators

Caret-sensitive indicators show up as soon as you set the caret to a specific place in the code and suggest one or more actions that may be helpful at this place.

Most of the time ReSharper can indicate several actions at your caret position and therefore often an indicator of a specific action with a higher priority hides several more actions with lower priority.

Caret-sensitive action indicators in the list below are shown in the order of their priorities (from high to low):

Action List

If you click on a particular action indicator or press Alt+Enter while your caret is in the corresponding position, all available actions appear in a pop-up called Action list:

Action list

You are free to choose whether to use the suggestions or not, but it often worth taking a look at what is available at the current caret position.

Action list also displays the search /help/img/dotnet/2017.1/ThemedIcon.QuickSearch.Screen.[Gray].png icon. It appears to remind you that you can navigate to action right from the action list by starting to type the action name or related words.

If ReSharper detects one or more code issues under your caret, the Inspection [name of inspection] /help/img/dotnet/2017.1/ThemedIcon.Settings.Screen.[Gray].png sub-menu appears in the action list for each issue detected with a configurable inspection. You can use items of this sub-menu to configure options of the corresponding inspection.

Inspection options
Last modified: 12 October 2017

See Also