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

Inline Global Using refactoring

Last modified: 21 July 2022

ReSharper | Refactor | Inline | Inline Global Using…

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

This refactoring allows you to replace one or more global using directives with local using directives in all files where symbols from the corresponding namespaces are used.

In the example below, we apply this refactoring to global using System.Collections; in file GlobalUsings.cs and as a result it adds the corresponding local using directives in files One.cs and Two.cs.

This feature is supported in the following languages and technologies: