Most of quick-fixes can fix the current issue under the caret, but some of them (e.g. Remove unused directives, Make field read-only, Remove redundant cast, etc.) can also automatically find and fix issues in a larger scope - in the current file, in the current project or in the whole solution.
You can recognize such fix by a small arrow displayed next to it in the action list.
- Set the caret to a code issue highlighted by a ReSharper's inspection.
- Press Alt+Enter or click on the action indicator, which appears to the left of the code issue, to open the action list.
- Click on the arrow to right of the quick-fix or press the right arrow key to expand the list of available scopes. If there is no arrow to the right of a quick-fix, then this quick-fix applies only locally.
- Select the scope for the quick-fix to apply and click on it or press Enter.
The full list of quick-fixes that can be applied in wider scopes include:
- Use 'var'
- Redundant array creation expression
- Redundant 'else' keyword
- Redundant control flow jump statement
- Redundant comma in array initializer
- Empty object or collection initializer list is redundant
- Redundant argument name specification
- Redundant lambda signature parentheses
All files where ReSharper applies fix in scope open in the editor tabs. If necessary, you can undo all that was changed in these files with a single command: choose Edit | Undo in the main menu or press Ctrl+Z.