Visual Studio or Resharper functionality for placement of using directives

后端 未结 7 787
猫巷女王i
猫巷女王i 2020-12-02 14:56

I like to put my using directives inside the current namespace, and not outside as VS and Resharper per default puts them.

Does anyone know of a macro/standard funct

7条回答
  •  青春惊慌失措
    2020-12-02 15:24

    As of Resharper 9 this has moved into Code Editing => C# => Code Style => Reference Qualification => Add 'using' directive to deepest scope.

    Or you can use new settings search facility and search for deepest scope. The exact setting will come up:

    Add 'using' directive to deepest scope

提交回复
热议问题