Eclipse shortcut for commenting jsp, xml code

xml comment shortcut in notepad++
comment in jsp
shortcut to remove commented code in eclipse
eclipse comment shortcut not working
shortcut to remove block comment in eclipse
comment multi line comment in eclipse

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.

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).

Comment xml files in Eclipse, Comment xml files in Eclipse [duplicate] · xml eclipse. This question already has answers here: Eclipse shortcut for commenting jsp,  The following keyboard shortcuts are available for the XML, XSD, WSDL, HTML, JSP, CSS and DTD editors. Source editor and XML tools keyboard shortcuts The following keyboard shortcuts are available for the XML, XSD, WSDL, HTML, JSP, CSS and DTD editors.

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.

Eclipse comment/uncomment shortcut?, For multiple line java code comment : Ctrl + Shift + / (Forwards Slash) and. Multiline uncomment : Ctrl + Shift In eclipse Pressing Ctrl + Shift + L , will list all the shortcuts. yes, also works at least in .less, .css, .jsp, .xml – el-teedee Sep 7 '​18 at 23:37. add a comment | Comments In HTML/XML/Config file  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!

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?

Eclipse shortcut to comment selection in an XML file - xml - html, Eclipse shortcut for commenting jsp, xml code. In IDEA, we can comment/​uncomment lines in java as well as html,jsp, xml files with the same keyboard shortcut  Shortcut commands in Eclipse IDE: CTRL + /  –> to comment single line of code CTRL + /  –> the same works to uncomment the same line of code, which is already commented CTRL + SHIFT + /  –> to comment block of code consisting of 3 or more lines of code

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!

Eclipse shortcut for commenting jsp, xml code - eclipse - html, 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​  These Eclipse shortcuts are very helpful for editing code in Eclipse: 5) Ctrl + / for commenting, uncommenting lines and blocks 6) Ctrl + Shift + / for commenting, uncommenting lines with block

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)

How to comment and uncomment line & block in Eclipse IDE , Also, it is required to comment & un-comment block of code consisting 3 To make this possible, Eclipse IDE provides easy shortcut keys and its https://help.​eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%  Using Eclipse Mars.1 CTRL + / on Linux in Java will comment out multiple lines of code. When trying to un-comment those multiple lines, Eclipse was commenting the comments. When trying to un-comment those multiple lines, Eclipse was commenting the comments.

How can I add JSP comments (instead of HTML comments), When editing JSP pages in Eclipse, I can comment out the current line Code: [​Select all] [Show/ hide] Is there a way to add these comments with a keyboard shortcut instead/as well? [ Syndicate this forum (XML) ] [ RSS ]. Eclipse and STS are both great IDEs for Java developers. STS stands for Spring Tool Suite and it’s basically an Eclipse that is extended with plugins specifically for development using the Spring framework. Knowing the useful shortcuts can really speed up the coding process. The key combinations presented here are the default ones that come

Shortcut to Toggle Comment in XML/JSP, Would it be possible to have a shortcut to auto comment out a line or Spring Tools & IDE · Java EE Development · WebSphere App Coding · REST Web Services XML/HTML/JSP, like having Cntrl + / to Toggle Comment in Java files The Ant Editor is a base Eclipse platform editor and doesn't have this  Adding Comments PDT allows you to quickly and easily comment and uncomment code by selecting a line or a block of text and tagging it as a comment. Comments can be added to single lines of code (Ctrl + /) or blocks of code (Ctrl + Shift + /). In addition, special PHPDocBlock comments can also be added.

Easy way (hotkey?) to comment out in XML / HTML / JSP?, I'm thinking like in the Eclipse Java editor where you can just do a some lines of code in your jsp and go to Source > Add Block Comments to 

Comments
  • +1. "Show Key Assist" is good advice ;) stackoverflow.com/questions/1986195/…
  • +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 Actually, in my Eclipse installation the default binding didn't work in JSP editor (even thoughs its scope was 'In Dialogs and Windows'), so I had to copy it and set When = JSP Source.
  • short key for this comment - "<%-- commented --%>" ?
  • this hotykey is much more better that upper one
  • Doesn't work for me on XML files. ctrl+shirt+c works.