Does Eclipse have a hot key to comment a block? and to uncomment a block?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ctrl–/ to toggle “//” comments and Ctrl–Shift–/ to toggle “/* */” comments. At least for Java, anyway – other tooling may have different shortcuts.
Ctrl–\ will remove a block of either comment, but won’t add comments.
Note: As for Eclipse CDT 4.4.2, Ctrl–Shift–/ will not uncomment a “/* */” block comment. Use Ctrl–Shift–\ in that case.
EDIT: It’s Ctrl on a PC, but on a Mac the shortcuts may all be Cmd instead. I don’t have a Mac myself, so can’t easily check.