In IDEA, we can comment/uncomment lines in java as well as html,jsp, xml files with the same keyboard shortcut combination. I tried doing that in eclipse but was not able to comment out lines in html,jsp and xml files. Is there a way to do it in Eclipse? Also I would like to know whether bulk comment is also available for non-java files.
+1
A:
I believe CTRL-SHIFT-C works in XML, not sure about JSP. I think it lacks consistency in the various editors, and some don't have this shortcut.
harschware
2010-02-06 00:42:57
+5
A:
I use Shift+Ctrl+/ to Add Block Comment in both XML and JSP files (works at the line level or for a selected block).
Just in case, if you are looking for a particular shortcut, you can use Shift+Ctrl+L to Show Key Assist (i.e. the Commands and their Bindings).
Pascal Thivent
2010-02-06 00:56:06
+1. "Show Key Assist" is good advice ;) http://stackoverflow.com/questions/1986195/eclipse-list-of-default-keyboard-shortcuts/1986236#1986236
VonC
2010-02-06 10:14:29
+1. And if you don't like to key binding showed in Show Key Assist, open Preferences/General/Key, and set your own...
Zoltán Ujhelyi
2010-02-06 12:45:27