开发者

Eclipse MAC - Comment / Uncomment - keyboard shortcut

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

command + sh开发者_运维知识库ift + c to comment /uncomment

any help would be great. Thanks.


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.


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

The shortcut may have been overridden by another one.


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!


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜