I am looking for a way to comment the current selection in an xml file in eclipse (STS 2.3.2). ctrl+/ gets seems to get ignored when editing XML.
Google left me on my own.
I use the (Ctrl+Shift+,) shortcut to comment out selected XML all of the time.
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 + /).
If you are using Eclipse IDE you can comment out lines in an XML file by highlighting them and press Ctrl+Shift+c.
Syntax. A comment starts with <! -- and ends with -->. You can add textual notes as comments between the characters.
Ctrl-Shift-C, or something... some combination of two modifier keys and C :-)
Use
Ctrl + SHIFT + L which will open a list of all major shortcuts for eclipse. 1. ForSingle line comment Ctrl + / (Forwards Slash) and
2. Single line uncomment Ctrl + \ (Backslash)
3. For Multiline comment Ctrl + Shift + / (Forwards Slash) and
4. Multiline uncomment Ctrl + Shift + \ (Backslash)
SOURCE : answered by Hardik Mishra in --> Eclipse comment/uncomment shortcut?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With