Nico van Bentum
Nico van Bentum

Reputation: 347

Keep open braces on the same line in Visual Studio 2019

By default, my VS 2019 creates new function definitions like this:

void somefunction() 
{
    
}

Is there a setting I can change to default it to this?

void somefunction() {
    
}

Upvotes: 0

Views: 639

Answers (1)

rustyx
rustyx

Reputation: 85541

Go to ToolsOptionsText EditorC/C++FormattingNew LinesPosition of open braces for functionsKeep on same line ...

Position of open braces for functions

Upvotes: 2

Related Questions