[英]How to correct code style in VS2012?
Sometimes I have stuff like this in VS 有时我在VS中有这样的东西
if (IsValid)
{
functionA();
functionB();
}
Well this is not looking good. 嗯,这看起来不太好。 I want to select these fields (or the field I want to have corrected) and let VS correct the style.
我想选择这些字段(或我想要更正的字段)并让VS更正样式。 Is there a way, somehow I cannot find anything
有办法,不知怎的,我找不到任何东西
Edit
> Advanced
> Format Document
(或Format Selection
)应该为您做很多工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.