ReSharper
 
Get ReSharper
You are viewing the documentation for an earlier version of ReSharper.

Extract Global Using refactoring

Last modified: 21 July 2022

ReSharper | Refactor | Extract | Extract Global Using…

To assign a shortcut, go to Tools | Options | Environment | Keyboard and find the ReSharper_ExtractGlobalUsing command.

This refactoring allows you to convert one or more local using directives into global using directives and move them to a new or existing file.

In the example below, we apply this refactoring to using System.Collections; in file One.cs and place the extracted using to GlobalUsings.cs.

This feature is supported in the following languages and technologies: