To view and apply quick-fixes
- Click a highlight (error, warning, suggestion, or hint) in the source code, or the corresponding marker in the Marker Bar to show the light bulb.
Click the red
Image 1: Image 4: or yellow
Image 2: Image 5: bulb, or press
Select the desired quick-fix in the drop-down list of available
actions, or select the action using arrow keys and press
In some cases a quick-fix is applied and the code is updated
immediately. If a quick-fix involves direct editing of source code
Change All), the editor turns into special mode, which is indicated by a blue highlight in red frame, and a suggestion list is displayed:
Select the desired option from the suggestion list and press
Enter(to discard changes, press Esc). So doing, ReSharper detects all occurrences of the symbol that are highlighted as errors, and replaces them automatically.