Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse MAC - Comment / Uncomment - keyboard shortcut

I just upgraded by eclipse PDT and can't use the keyboard shortcut

command + shift + c to comment /uncomment

any help would be great. Thanks.

like image 200
space_balls Avatar asked Sep 15 '11 00:09

space_balls


3 Answers

So i'm not really sure what happend when I upgraded but the solution is as follows-

  1. head over to - http://sourceforge.jp/projects/pdt-tools/releases/51060 - and download the file "org.eclipse.php.ui_2.2.1.v20101001-2300.jar"

  2. open up your eclipse folder - /Applications/ecplise/plugins

  3. replace the "org.eclipse.php.ui_2.2.1.v20101001-2300.jar" with the one you just downloaded

  4. open terminal

  5. navigate to your eclipse folder - /Applications/eclipse

  6. type "./eclipse -clean"

This fixes up your keyboard short cut but in my case I need to re-map from command + / to command + shift + c

Thanks to slomojo for this- 7. Go to windows -> preferences -> general settings -> keys and update the following http://img703.imageshack.us/img703/264/bildschirmfoto20110915u.png

hope this helps.

like image 92
space_balls Avatar answered Nov 15 '22 09:11

space_balls


Have a look in Eclipse > Preferences > General Settings > Keys

The shortcut may have been overridden by another one.

like image 23
ocodo Avatar answered Nov 15 '22 11:11

ocodo


Single line

Toggle of same keys

comment Cmd + Shift + C

uncomment Cmd + Shift + C

Multiline

comment Cmd + /

uncomment Cmd + \ (note the backslash)

Hope this helps!

like image 38
tk_ Avatar answered Nov 15 '22 10:11

tk_