简体   繁体   English

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

[英]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.我希望我的 Visual Studio #CS 编辑器更喜欢在 using 语句中使用完全限定的命名。 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". Resharper 中有这样一个选项“在嵌套范围内使用完全限定的名称”。

what is the parallel setting for this in the.editorconfig file? .editorconfig 文件中的并行设置是什么?

the flag in.editorconfig is as follows: .editorconfig 中的标志如下:

csharp_qualified_using_at_nested_scope = true

just set this to true只需将其设置为true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM