Convert to Global Using refactoring
note
Global using directive is a C# 10.0 feature.
By default, ReSharper automatically detects C# version based on the associated compiler. However, you can specify the target C# version explicitly for a project — right-click the project in the Solution Explorer, choose Edit project item properties from the context menu and use the C# Language Level selector .
To set the C# version for all projects in your solution, specify it in a Directory.Build.props file in your solution directory as described here.
tip
The reverse transformation from global to local
using
directives is available via the Convert to Non-Global Using refactoring.
![ReSharper: 'Convert to Global Using' refactoring ReSharper: 'Convert to Global Using' refactoring](https://resources.jetbrains.com/help/img/dotnet/2024.3/Refactorings__Convert_to_Global_Using.png)