How to comment a block in Eclipse?

前端 未结 17 2171
一整个雨季
一整个雨季 2020-12-07 08:52

Does Eclipse have a hot key to comment a block? and to uncomment a block?

17条回答
  •  孤街浪徒
    2020-12-07 09:20

    for java code

    if you want comments single line then put double forward slash before code of single line manually or by pressing Ctrl +/ example: //System.Out.println("HELLO");

    and for multi-line comments, Select code how much you want to comments and then press

    Shift+CTRL+/

    Now for XML code comments use Select code first and then press Shift+CTRL+/ for both single line and multi-line comments

提交回复
热议问题