Eclipse MAC - Comment / Uncomment - keyboard shortcut
Asked Answered
L

4

7

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.

Libbie answered 15/9, 2011 at 0:46 Comment(0)
L
1

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.

Libbie answered 19/9, 2011 at 3:32 Comment(1)
went to download the file again but couldn't find it, had to use: eclipse.org/downloads/download.php?file=/tools/pdt/updates/2.2/…Libbie
V
1

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

The shortcut may have been overridden by another one.

Valentijn answered 15/9, 2011 at 0:51 Comment(0)
L
1

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.

Libbie answered 19/9, 2011 at 3:32 Comment(1)
went to download the file again but couldn't find it, had to use: eclipse.org/downloads/download.php?file=/tools/pdt/updates/2.2/…Libbie
S
1

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!

Scholastic answered 22/11, 2014 at 3:11 Comment(2)
its for Windows, its asked for Mac.Whopper
@Whopper Sorry, I could not spoon feed you but every mac user must know the windows ctrl equivalent in mac. However, without complaining you can always edit my answer.Scholastic
G
0

Mai 2022 on my MacBook Pro 2019 => select the code you want to comment or uncomment and do the following: press command 7 to comment and command 7 to uncomment

Grampositive answered 9/5, 2022 at 21:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.