user496949
user496949

Reputation: 86085

Any menu or hotkey to quickly comment/uncomment code in Eclipse

Any quick way to comment/uncomment java source code in Eclipse?

Upvotes: 2

Views: 7032

Answers (2)

adarshr
adarshr

Reputation: 62593

Ctrl + Shift + / and Ctrl + Shift + \ toggles C-style comments.

Ctrl + / toggles single-line comments.

Upvotes: 10

Mudassir
Mudassir

Reputation: 13174

For Multiline Comments:

Comment: Ctrl + Shift + / Uncomment: Ctrl + Shift + \


For Single Line Comments:

Comment/Uncomment: Ctrl + /

Upvotes: 4

Related Questions