Eclipse shortcut for commenting jsp, xml code

前端 未结 5 1752
情歌与酒
情歌与酒 2020-12-14 00:01

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

5条回答
  •  清歌不尽
    2020-12-14 00:19

    I found Ctrl + Shift + C works in JSP too, it works like:

    
    
    
    
    
    

    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:

    
    
    
    
    

    can use Ctrl + Shift + \ to remove the block comment.

    PS: I want to find out, which eclipse shortcut can add/remove <%-- --%> comment in JSP?

提交回复
热议问题