如何在 CSharp 编辑器的 .editorconfig 的嵌套范围内选择完全限定的“使用名称”

Sam*_*mar 1 c# resharper using fully-qualified-naming editorconfig

我希望我的 Visual Studio #CS 编辑器更喜欢在 using 语句中使用完全限定的命名。所以我更喜欢:

using myproject.management.control.common;
Run Code Online (Sandbox Code Playgroud)

而不是

using control.common;
Run Code Online (Sandbox Code Playgroud)

Resharper中有这样一个选项“在嵌套范围内首选使用完全限定的名称”。

.editorconfig 文件中的并行设置是什么?

Sam*_*mar 7

.editorconfig 中的标志如下:

csharp_qualified_using_at_nested_scope = true
Run Code Online (Sandbox Code Playgroud)

只需将其设置为true

请参阅:Rider / 代码样式和清理 / 使用 EditorConfig / EditorConfig 属性