Is there a consensus within the C# development community on the .cs filename in which global using statements are declared?
I was going to adopt the filename GlobalUsings.cs but then found that a hidden file called MyProject.GlobalUsings.g.cs is created behind the scenes by the VS2022 toolchain. This is to support the related new C# 10 feature called Implicit global using directives.
Blazor has supported a similar feature for .razor files and the Blazor solution template automatically creates a file called _Imports.razor. That name is derived from the Razor syntax to declare a using reference.
Globals.cs
for example? – Giovannagiovanni_GlobalUsings.cs
with a leading underscore, so I have it on the top of the list in Solution Explorer and not somewhere in the middle of my regular classes. The leading underscore is, like you mentioned, similar to razor/blazor. I don't get it why Visual Studio names it "GlobalUsings.cs" for new projects. Sadly that is not configurable. – Tom