关闭文件夹/命名空间公约 [英] Turn Off the Folder/Namespace Convention

查看:121
本文介绍了关闭文件夹/命名空间公约的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到人们谈论的<一个烦恼href="http://stackoverflow.com/questions/1289425/should-i-stop-fighting-visual-studios-default-namespace-naming-convention">Visual Studio会自动创建与项目文件夹对应一个命名空间。有没有办法关闭这个功能在VS 2010中,而不诉诸修改类模板?

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?

推荐答案

如果您使用ReSharper的,还有就是文件夹'命名空间提供者'。

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

即使你把它设置为false,Visual Studio将仍然添加文件夹的名字作为命名空间。然而,ReSharper的修复它与一按就命名空间。

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.

这篇关于关闭文件夹/命名空间公约的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆