I thought this would be easy to achieve, but so far I haven\'t found solutions for comment/uncomment shortcut on both Java class editor
and jsf faceted we
A simple way of doing is to press Ctrl + Shift + C, on the lines of your code.
For comment and for uncomment do same .. :)
Select the code you want to comment, then use Ctr + / to comment and Ctrl + / also to uncomment. It may not work for all types of source files, but it works great for Java code.
Single comment ctrl + / and also multiple line comment you can select multiple line and then ctrl + /. Then, to remove comment you can use ctrl + c for both single line and multiple line comment.
You can toggle the comment on one line or selection by using the shortcut Ctrl + / This adds/removes the // infront of the code line
You can block comment /* */ using the Ctrl + Shift + / eclipse shortcut
You can find a complete list of useful eclipse shortcuts here http://javatutorial.net/eclipse-shortcuts