How do i automate adding a “using” statement to every files in a folder, namespace or project with Visual Studio 2005 / resharper

后端 未结 4 1632
庸人自扰
庸人自扰 2021-01-17 19:00

I am using resharper to do a big refactoring and i keep going from file to file and adding the same namespace over and over again in the \"using\" section

is there a

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-17 19:42

    • Open ReSharper Options / Languages / C# / Namespace Imports
    • Add "Namespaces that should always be imported"
    • Run Code Cleanup against solution or project. You may want to create profile (Options / Tools / Code Cleanup) with only Optimize Using Directives module.

提交回复
热议问题