facebook

Shortcut to Toggle Comment in XML/JSP

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #254616 Reply

    VIRGINWEBDEV
    Member

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

    #254641 Reply

    Greg
    Member

    For 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?

    #254644 Reply

    VIRGINWEBDEV
    Member

    Sorry, 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?

    #254645 Reply

    Greg
    Member

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

    #254649 Reply

    VIRGINWEBDEV
    Member

    I think losing all the Ant support though might out-weigh the gain, but thanks for the work-around anyway.

    Thanks for your help.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Shortcut to Toggle Comment in XML/JSP

You must be logged in to post in the forum log in