简体   繁体   中英

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() {
    
}

Go to ToolsOptionsText EditorC/C++FormattingNew LinesPosition of open braces for functionsKeep 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM