silla
silla

Reputation: 1327

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

Upvotes: 3

Views: 2081

Answers (1)

Rawling
Rawling

Reputation: 50114

Edit > Advanced > Format Document (or Format Selection) should do a lot of the work for you.

Upvotes: 8

Related Questions