Eclipse切换注释缩进 [英] Eclipse toggle comment indented

查看:111
本文介绍了Eclipse切换注释缩进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下代码:

public int doBam(int bam) {
    if(foo) {
        bam += 1;
        if(bar) {
            bam += 1;
        }
    }
    return bam;
}

我想评论 if(bar) ...

当我在Eclipse 3.6中切换评论时,我会得到这样的:

When I do toggle comment in Eclipse 3.6 I will get this:

public int doBam(int bam) {
    if(foo) {
        bam += 1;
//        if(bar) {
//            bam += 1;
//        }
    }
    return bam;
}

我可以让Eclipse切换评论吗?

Can I make Eclipse to toggle comment like this instead?

public int doBam(int bam) {
    if(foo) {
        bam += 1;
        //if(bar) {
        //    bam += 1;
        //}
    }
    return bam;
}


推荐答案

似乎是一个真正的解决方案这不会在eclipse中发生

seems like a real solution for this is not going to happen in eclipse

https://bugs.eclipse.org/bugs/show_bug.cgi?id=321092

这篇关于Eclipse切换注释缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆