How can I set Visual Studio to use K&R style bracketing?

前端 未结 3 538
花落未央
花落未央 2020-12-23 10:51

I really don\'t like this style of formatting:

Class AwesomeClass
{
    private static void AwesomeMethod()
    {

    }

}

Can I make it f

3条回答
  •  执笔经年
    2020-12-23 11:45

    Tools->Options->Text Editor->C/C++->Formatting->New Lines

    change all values to

    "Keep on the same line, but add a space before"

    then select a block and reformat with Ctrl + K, Ctrl + F

提交回复
热议问题