Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要格式化以下代码
switch(i) { case 1: { printf("a"); break; }
进入:
在其他情况下保持 k&r 括号样式。我怎么能这样做?
我努力了--style=kr --indent-cases
--style=kr --indent-cases
正则表达式替换:
s/\(case.*:\s\+\){/\1\r{/g