Uncomment multiline code in eclipse

Yes, this could be duplicate of Eclipse comment/uncomment shortcut? But, answers given their are not working for my case.

I have formatted java code and When I select and use ctrl + shift + / it looks like

 * if (isKilled) { Log.i("TAG", "Killed"); }

But when I use ctrl + shift + / for above selected code, eclipse is not un-commenting my code.

I tried ctrl + shift + \, ctrl + shift + / and ctrl + \. Nothing worked. I always manually remove *s even if commented code is very big.

How to do this? I also want *s to be removed.

2 Answers
  1. Try using Ctr+Shift+C This should work

    Pratik Roy2014-02-12 10:08:20
  2. For me Remove Block Comment (Ctrl + Shift + \) works but only if there is code on the first line of the comment, so your example does not work but:

    /* if (isKilled) { Log.i("TAG", "Killed"); }

    does work.

    2014-02-12 10:13:57
Related Articles
You Might Also Like