score:89
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).
score:2
in mac, for xml:
command+/ - to comment a line or selected block of lines
command+\ - to uncomment a line or selected block of lines
this works in eclipse photon (4.8.0)
score:7
in eclipse they use same kind of shortcut to do this which is for:
i found ctrl + shift + c works in xml and jsp.
single line
comment ctrl + /
uncomment ctrl + /
multiline
comment ctrl + shift + /
uncomment ctrl + shift + \ (note the backslash)
hope this helps!
score:24
i found ctrl + shift + c works in jsp too, it works like:
<tiles:insertdefinition name="" >
</tiles:insertdefinition>
<!--<tiles:insertdefinition name="" >-->
<!--</tiles:insertdefinition>-->
add comment tag line by line, and select the sentences, use ctrl + shift + c again can toggle remove the comments.
ctrl + shift + / add block comment in jsp, works like:
<tiles:insertdefinition name="" >
</tiles:insertdefinition>
<!--<tiles:insertdefinition name="" >
</tiles:insertdefinition>
-->
can use ctrl + shift + \ to remove the block comment.
ps: i want to find out, which eclipse shortcut can add/remove <%-- --%>
comment in jsp?
score:47
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.
Source: stackoverflow.com
Related Query
- Eclipse shortcut for commenting jsp, xml code
- How to add shortcut keys for java code in eclipse
- Is there a shortcut in Eclipse for generating code for decorators?
- Unable to compile class for JSP error when I'm running my code in eclipse gwt project
- JSF Code formatter or Eclipse XML Editor, each tag for new line?
- Set common shortcut keys for Visual Studio, VS code and Eclipse
- Search for the references to a layout xml file in android code using eclipse IDE for android
- How i can adding shortcut keys for java code in eclipse
- eclipse shortcut xml for jdeveloper
- xquery plugin for eclipse that allows me to run xquery code against xml documents
- How to write dynamic code for xml code below using eclipse IDE for Android
- Eclipse Android shortcut for content assist in XML
- XML code doesnt seem to work in JSP code on eclipse browser
- How to turn off the Eclipse code formatter for certain sections of Java code?
- Keyboard shortcut to "untab" (move a block of code to the left) in eclipse / aptana?
- Key Shortcut for Eclipse Imports
- What is the Eclipse shortcut for "public static void main(String args[])"?
- Eclipse keyboard shortcut to indent source code to the left?
- Format XML code in Eclipse
- What is the eclipse shortcut for auto-generating a default and field constructor?
- Eclipse plugin for code coverage
- Maximize code tab in eclipse shortcut
- What is the keyboard shortcut for method suggestions in Eclipse on Mac OS X?
- Aptana Plugin for Eclipse and jQuery code assist
- Best XML editor for Eclipse
- Bogus Eclipse warning for web.xml: "No grammar constraints (DTD or XML schema) detected for the document."
- Turn off Eclipse formatter for selected code area?
- Redo keyboard shortcut for Eclipse
- eclipse xml editor inserts tabs for spaces
- Eclipse plugin for generating UML diagram from c++ code
More Query from same tag
- EGit not showing changed files.
- How to compile a .war file to i-jetty (android web server)?
- Text format for NFC writing
- Eclipse Hang When Cancel Background Process
- Android installer installs 2 instances?
- Debug Haxe from Eclipse
- Can't access R class elements
- Remote EJB Client Eclipse
- Error deploying to App Engine
- Android Facebook Logout error (Unknown Method)
- Cannot export Android application with error Failed to export application
- Exception while running my WAR in eclipse using TomCat 7
- Is there a useable DateTime widget for SWT?
- Adding ArrayList Objects to GridView in Android
- what is wrong with this programme on java
- Finding out where a file in the project explorer is used in the code in Eclipse IDE
- how to get url from IFolder
- How do I find all classes in a project that extend a particular library?
- ADT bundle Android tutorial : Error: No resource found that matches the given name (at 'hint' with value '@string/edit_message')
- Eclipse Autocomplete JavaScript
- Rails encoding under Cygwin
- No resource identifier found for attribute 'exitFadeDuration' in package 'android'
- Error while Inflating class?
- Is there a way to pause execution of a running Java program in Eclipse on Macbook Pro?
- Difference between eclipse 3.8 and 3.8.1?
- Syntax error on token ";", invalid AssignmentOperator
- Lambda type missmatch in Eclipse
- Vavr source jar is missing classes
- Eclipse + PyDev: use docstring for type checking (like PyCharm)
- INSTALL_FAILED_DEXOPT/UID_CHANGED error when trying to install application