如何为注释掉的代码维护缩进?

时间:2013-10-09 14:46:36

标签: eclipse formatting comments indentation

我遇到了eclipse的问题,没有按照我想要的方式格式化评论。当我注释掉代码时,我希望保持对齐,但是我很难让它工作。

通缉:

        if (isTrue) {
            // get it done
            doIt();
//      } else {
//          log("Take note of this");
        }

格式化结果:

        if (isTrue) {
            // get it done
            doIt();
// } else {
// log("Take note of this");
        }

1 个答案:

答案 0 :(得分:-1)

Ctrl + 7似乎可以在我的日食中工作并且格式正常

我也听说过阻止它的ctrl + shift + /

相关问题