现在格式化是这样样式, 代码折叠会不完全
if (...) { #ifdef __DEBUG__ Debug("triggered"); if (...) {...some code;} #endif } 想右键格式化变成这样
if (...) { #ifdef __DEBUG__ Debug("triggered"); if (...) {...some code;} #endif } 请问如何设置呢?

现在格式化是这样样式, 代码折叠会不完全
if (...) { #ifdef __DEBUG__ Debug("triggered"); if (...) {...some code;} #endif } 想右键格式化变成这样
if (...) { #ifdef __DEBUG__ Debug("triggered"); if (...) {...some code;} #endif } 请问如何设置呢?
1 jedihy Feb 12, 2019 via iPhone ifdef 不顶格是给自己埋坑 |
4 codehz Feb 12, 2019 via Android .clang-format 文件里可以配置,详情可以看 clang-format 的文档 |