- This topic has 4 replies, 2 voices, and was last updated 18 years, 4 months ago by VIRGINWEBDEV.
-
AuthorPosts
-
VIRGINWEBDEVMemberJust a very small feature enhancement, but one which would greatly improve things when editing XML/JSP’s in MyEclipse. Would it be possible to have a shortcut to auto comment out a line or section of XML/HTML/JSP, like having Cntrl + / to Toggle Comment in Java files? e.g. From
<title>My Title</title>
to
<!–<title>My Title</title>–>
with a simple shortcut in a HTML/XML or JSP file?
This feature is available in IntelliJ and is a life saver, its stopping a load of people I know from migrating from IntelliJ to MyEclipse, and would certainly make life so much easier.
Is there any chance of this being added at some point? I did have a good look around and couldn’t see this mentioned, sorry if it is duplicated.
GregMemberFor quick comments you can use “Ctrl+shilft+C” to toggle a line comment. And “Ctrl+shift+/” to toggle a block comment for the current selection. Is that what you are looking for, or does it have to be “Ctrl + /” just like in the java editor?
VIRGINWEBDEVMemberSorry, didn’t realise there was already a way to do it. Thank you!
Just spotted that this doesn’t work for Ant build.xml files, is there any way I can configure this?
GregMember@VIRGINWEBDEV wrote:
Sorry, didn’t realise there was already a way to do it. Thank you!
No problem, glad you asked. Now those “loads of people” can migrate to MyEclipse from IntelliJ 🙂
@VIRGINWEBDEV wrote:
Just spotted that this doesn’t work for Ant build.xml files, is there any way I can configure this?
The Toggle comment action is only a feature of the XML,HTML,JSP, etc editors provided by MyEclipse. The Ant Editor is a base Eclipse platform editor and doesn’t have this same feature. However, you could edit the ant build file with the MyEclipse XML editor to get the toggle action, but then you wouldn’t have the features of the Eclipse Ant editor unfortunately.
VIRGINWEBDEVMemberI think losing all the Ant support though might out-weigh the gain, but thanks for the work-around anyway.
Thanks for your help.
-
AuthorPosts