<tfoot id='iLk6y'></tfoot>

        <bdo id='iLk6y'></bdo><ul id='iLk6y'></ul>

      <i id='iLk6y'><tr id='iLk6y'><dt id='iLk6y'><q id='iLk6y'><span id='iLk6y'><b id='iLk6y'><form id='iLk6y'><ins id='iLk6y'></ins><ul id='iLk6y'></ul><sub id='iLk6y'></sub></form><legend id='iLk6y'></legend><bdo id='iLk6y'><pre id='iLk6y'><center id='iLk6y'></center></pre></bdo></b><th id='iLk6y'></th></span></q></dt></tr></i><div id='iLk6y'><tfoot id='iLk6y'></tfoot><dl id='iLk6y'><fieldset id='iLk6y'></fieldset></dl></div>
    1. <small id='iLk6y'></small><noframes id='iLk6y'>

      <legend id='iLk6y'><style id='iLk6y'><dir id='iLk6y'><q id='iLk6y'></q></dir></style></legend>

        阻止 VS 自动添加 using 指令

        时间:2023-09-16

        <small id='y4VnT'></small><noframes id='y4VnT'>

        <tfoot id='y4VnT'></tfoot>

          <i id='y4VnT'><tr id='y4VnT'><dt id='y4VnT'><q id='y4VnT'><span id='y4VnT'><b id='y4VnT'><form id='y4VnT'><ins id='y4VnT'></ins><ul id='y4VnT'></ul><sub id='y4VnT'></sub></form><legend id='y4VnT'></legend><bdo id='y4VnT'><pre id='y4VnT'><center id='y4VnT'></center></pre></bdo></b><th id='y4VnT'></th></span></q></dt></tr></i><div id='y4VnT'><tfoot id='y4VnT'></tfoot><dl id='y4VnT'><fieldset id='y4VnT'></fieldset></dl></div>
            <tbody id='y4VnT'></tbody>
          • <bdo id='y4VnT'></bdo><ul id='y4VnT'></ul>
            <legend id='y4VnT'><style id='y4VnT'><dir id='y4VnT'><q id='y4VnT'></q></dir></style></legend>

                • 本文介绍了阻止 VS 自动添加 using 指令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我不介意创建脚本时自动创建的 using 指令.那些很好.我正在谈论的是在脚本顶部自动生成的 using 指令,而当我在引用超出范围的类型时立即进行编码.沉默的恶魔身上的痘痘!

                  I don't mind the using directives which are automatically created when the script is created. Those are fine. What I'm talking about are the using directives which are automatically generated at the top of the script while I'm coding as soon as I refer to a type which is out of scope. A pox upon the silent fiends!

                  为了澄清,目前如果我尝试在脚本中包含尚未声明为使用"的某个命名空间中存在的类型,则所述命名空间将自动添加到脚本的顶部.这对我来说是不受欢迎的行为.

                  To clarify, currently if I try including a type which exists in some namespace which is not yet declared as 'using' in the script, said namespace will get auto-added to the top of the script. This is undesired behavior for me.

                  我只是更喜欢手动添加我的命名空间.

                  I simply prefer to manually add my namespaces.

                  推荐答案

                  在工具下 >选项...>文本编辑器 >C# >IntelliSense,取消选中显示未导入命名空间中的项目(实验性)".

                  Under Tools > Options... > Text Editor > C# > IntelliSense, uncheck 'Show items from unimported namespaces (experimental)'.

                  这篇关于阻止 VS 自动添加 using 指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:.NET 单个类的多个命名空间 下一篇:System.Web.Mvc 与 Microsoft.Web.Mvc

                  相关文章

                    <bdo id='9yIEC'></bdo><ul id='9yIEC'></ul>

                    <tfoot id='9yIEC'></tfoot>

                    <i id='9yIEC'><tr id='9yIEC'><dt id='9yIEC'><q id='9yIEC'><span id='9yIEC'><b id='9yIEC'><form id='9yIEC'><ins id='9yIEC'></ins><ul id='9yIEC'></ul><sub id='9yIEC'></sub></form><legend id='9yIEC'></legend><bdo id='9yIEC'><pre id='9yIEC'><center id='9yIEC'></center></pre></bdo></b><th id='9yIEC'></th></span></q></dt></tr></i><div id='9yIEC'><tfoot id='9yIEC'></tfoot><dl id='9yIEC'><fieldset id='9yIEC'></fieldset></dl></div>

                    1. <small id='9yIEC'></small><noframes id='9yIEC'>

                    2. <legend id='9yIEC'><style id='9yIEC'><dir id='9yIEC'><q id='9yIEC'></q></dir></style></legend>