我在gnu缩进中找不到任何选项:
result = some_function(prm1,
prm2,
prm3);
或类似的东西:
result = some_function(
prm1,
prm2,
prm3);
gnu缩进是否可能?谢谢。
答案 0 :(得分:0)
来自indent
手册页:
p1 = first_procedure (second_procedure (p2, p3), third_procedure (p4, p5)); With `-lp´ in effect the code looks somewhat clearer: p1 = first_procedure (second_procedure (p2, p3), third_procedure (p4, p5));
当一个语句在两个或多个paren对(...)之间被打破时,每个额外的对都会导致缩进级别额外缩进:
if ((((i < 2 && k > 0) || p == 0) && q == 1) || n = 0) The option `-ipN´ can be used to set the extra offset per paren. For instance, `-ip0´ would format the above as: if ((((i < 2 && k > 0) || p == 0) && q == 1) || n = 0)
答案 1 :(得分:0)
您可以在Eclipse CDT IDE中执行此操作,他们使用自己的缩进引擎afaik。