Visual Studio 2010和自动格式化 [英] visual studio 2010, and autoformatting

查看:85
本文介绍了Visual Studio 2010和自动格式化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

VS 2010中是否有设置可以在自动格式化时更改代码的外观?

例如,如果您更喜欢

Hi all

Is there a setting in VS 2010 to change the appearance of code when auto formatting?

For example, if you prefer

public void SomeMethod(int someparameter) {
   useful stuff
}

over

public void SomeMethod(int someparameter)
{
   useful stuff
}


我知道CodeDom中.


I know there is in CodeDom.

推荐答案

是的.只需从菜单工具/选项"中打开,然后选择文本编辑器"/"C#/格式",然后遍历内部节点中的选项即可.
Yes there is. Just open from menu Tools/Options and select Text Editor/C#/Formatting and go through the choices in the inner nodes.


这篇关于Visual Studio 2010和自动格式化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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