我使用astyle来格式化我的C/C++源代码,经过多次尝试,它几乎满足了我的需要,只是它在子句extern "c"{
之后增加了额外的缩进。
我发现astyle有这个功能here ,它说“C/C++ 关键字‘extern’不再导致额外的缩进。”,但在其文档中找不到该选项。
我正在使用 astyle 2.02。
最佳答案
此问题已在一段时间前修复,请查看 AStyle 的错误链接:
http://sourceforge.net/tracker/?func=detail&aid=3467479&group_id=2319&atid=102319
关于c++ - 如何避免额外的 'extern' 缩进,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8615493/