Turn Off the Folder/Namespace Convention

假装没事ソ 提交于 2020-01-01 09:09:15

问题


I see people talking about the annoyance of Visual Studio automatically creating a namespace to correspond with project folders. Is there a way to turn this off in VS 2010, without resorting to modifying class templates?


回答1:


If you use Resharper, there is an attribute on the folder 'Namespace Provider'.

Even if you set it to false, Visual Studio will still add folder name as a namespace. However, Resharper fixes it with one click on the namespace.




回答2:


Use Resharper. Turn off the "Namespace Provider" option and you should be good to go without modifying class templates.



来源:https://stackoverflow.com/questions/6246637/turn-off-the-folder-namespace-convention

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!