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() {
}
Go to Tools → Options → Text Editor → C/C++ → Formatting → New Lines → Position of open braces for functions → Keep on same line...
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.