问题:
private int method1() {
if(some statement) return something;
else if (some statement) return something;
else retrun something;
我希望通过更改日食设置来缩进
private int method1() {
if (some statement) return something;
else if (some statement) return something;
else retrun something;
任何人都知道要更改蚀的设置才能获得上述缩进吗?
答案 0 :(得分:0)
很遗憾, if 语句无法在列中对齐。只有field and variable declarations and assignment statements can be aligned in columns这样。
您还必须编写自己的格式化程序以对齐if语句(Eclipse provides an extension point for that)。