views:

187

answers:

3

How do I comment blocks of code in Eclipse on a Mac?

+1  A: 

Command (the clover/apple key next to the space bar) forward slash (/)

Tom
A: 

Command + / comments the selection.

Aaron Maenpaa
A: 

Apple + Shift + / will toggle a block of selected code using /* */
Apple + / will toggle a line (or multiple, if selected) using //

You may have to disable the OS hotkey (apple + shift + / brings up the help menu)

Darryl E. Clarke