Reputation: 347
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
Reputation: 85541
Go to Tools → Options → Text Editor → C/C++ → Formatting → New Lines → Position of open braces for functions → Keep on same line ...
Upvotes: 2