Eclipse comment/uncomment shortcut?

前端 未结 17 1291
隐瞒了意图╮
隐瞒了意图╮ 2020-11-30 16:23

I thought this would be easy to achieve, but so far I haven\'t found solutions for comment/uncomment shortcut on both Java class editor and jsf faceted we

17条回答
  •  囚心锁ツ
    2020-11-30 16:49


    Comments In Java class


    1. Toggle/Single line Comment ( Ctrl+/ ) - Add/remove line comments (//…) from the current line.
    2. Add Block Comment ( Ctrl+Shift+\ ) - Wrap the selected lines in a block comment (/*… */).
    3. Remove Block Comment ( Ctrl+Shift+/ ) - Remove a block comment (/*… */) surrounding the selected lines.
    4. Add Javadoc Comment ( Alt+Shift+J ) - Add a Javadoc comment to the active field/method/class.

    Comments In HTML/XML/Config file


    1. Add Block Comment ( Ctrl+Shift+/ ) - Wrap the selected lines in a block comment (< !-- -->).
    2. Remove Block Comment (Ctrl+Shift+\) - Remove a block comment (< !-- -->) surrounding the selected lines.

提交回复
热议问题