Broxzier
Broxzier

Reputation: 2949

Visual Studio indents for shorthand initialisation

When I write a class' constructor and use shorthand initializations like this:

A(int x, int y) :
    position(x, y),
    image(nullptr) {
}

Visual studio formats it like this:

A(int x, int y) :
position(x, y),
    image(nullptr) {
}

Is there any option in Visual Studio 2010 or 2012 to format the indents correctly?

Upvotes: 0

Views: 79

Answers (1)

Lightness Races in Orbit
Lightness Races in Orbit

Reputation: 385395

Turn off the broken "automatic indentation" and type the TABs yourself. :)

Upvotes: 1

Related Questions