JetBrains Rider
 
2024.3
Get JetBrains Rider

Convert to Global Using refactoring

Last modified: 23 September 2024

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. JetBrains Rider analyzes all files in the current project, finds the same using in Two.cs, and moves both of them to GlobalUsings.cs.

JetBrains Rider: 'Convert to Global Using' refactoring