Search code examples
c#resharperusingeditorconfigfully-qualified-naming

How to prefer fully qualified "using name" at nested scope in .editorconfig for CSharp editor


I want my Visual Studio #CS editor to prefer using fully qualified naming at using statements. So i prefer:

using myproject.management.control.common;

rather than

using control.common;

There is such an option in Resharper "Prefer fully qualified using name at nested scope".

what is the parallel setting for this in the .editorconfig file?


Solution

  • the flag in .editorconfig is as follows:

    csharp_qualified_using_at_nested_scope = true
    

    just set this to true

    See: Rider / Code style and cleanup / Use EditorConfig / EditorConfig properties