admin管理员组文章数量:1297047
I'm using the vscode extension C/C++ and in the extension setting I've set Clang_format_style
as:
{
BasedOnStyle: Google,
SortIncludes: false,
IndentWidth: 4,
MaxEmptyLinesToKeep: 3,
ColumnLimit: 0,
KeepEmptyLinesAtTheStartOfBlocks: true,
AlignAfterOpenBracket: BlockIndent
}
However when I pass an array to a function
MyFunction({
1,
2,
3,
4
});
It formats all the items into a single line as such:
MyFunction({1, 2, 3, 4});
How do I keep each item on newline?
本文标签: cArray items not staying in newline when passed to a function on formattingStack Overflow
版权声明:本文标题:c++ - Array items not staying in newline when passed to a function on formatting - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741618551a2388674.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论