开发者

Turn Off the Folder/Namespace Convention

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开发者_如何学JAVA resorting to modifying class templates?


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

Turn Off the Folder/Namespace Convention

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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜