[Editor] Auto-align case statement with break?
已回答
Our internal coding standard requires that the break for a case statement should be aligned with the case statement (i.e. same indentation). Is there an option in the editor settings for this that I'm missing? Clion seems to always want to indent the break statement.
I can fix it manually every time, but it would be nice if I didn't have to.
请先登录再写评论。
Hello!
Unfortunately, there is no such option. Feel free to create a feature request in our tracker: https://youtrack.jetbrains.com/issues/CPP.
Also you can try using ClangFormat (https://www.jetbrains.com/help/clion/clangformat-as-alternative-formatter.html, https://clang.llvm.org/docs/ClangFormat.html), but I haven't found such a setting for this formatter either (but maybe I've overlooked it).