facebook

Shortcut for Comment on JSP

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #351273 Reply

    eugenejsn
    Participant

    ME Blue 14 on Linux.

    On a JSP, if I want to comment out a line, I use ctrol + shift + C. Now for the javascriptlet embedded in the JSP page such as:

    <div id=”<%=MyContants%>”></div>

    or “<%=MyContants%>”

    or test = “<%=test%>”;

    What is/how can I set up the shortcut for comment the line out, such that the outcome will be:

    <%– <div id=”<%=MyContants%>”></div> –%>
    <%– “<%=MyContants%>” –%>
    <%– test = “<%=test%>”; –%>

    Currently the control+shift+C only generate the // or <!– which does not comment out the javascriplet (<%= %>).

    Thanks

    Eugene

    #351287 Reply

    Eugene,

    The shortcut used to comment a Java scriptlet in a JSP is CTRL+SHIFT+/ .To remove the comment for the Java scriptlet, the shortcut is CTRL+SHIFT+\ .

    Hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Shortcut for Comment on JSP

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