简体   繁体   中英

How to correct code style in VS2012?

Sometimes I have stuff like this in 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. Is there a way, somehow I cannot find anything

Edit > Advanced > Format Document (或Format Selection )应该为您做很多工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM