如何在CLion中设置端部支架的位置

How to set the position of the end bracket in CLion

本文关键字:位置 端部 设置 CLion      更新时间:2023-10-16

我想写这样的代码:

for (int i = 0; i < 10; i++) for (int j = 0; j < 10; j++) {
    // something
}

但是,在CLion中,会生成以下代码:

for (int i = 0; i < 10; i++) for (int j = 0; j < 10; j++) {
    // something
    }

我希望CLion能像第一个例子一样生成代码。如何设置端部支架的位置?

试着将大括号的放置样式调整为"下一行",而不是"下一个行移位"。