Eclipse MAC - 注释/取消注释 - 键盘快捷键

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7424683/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:31:55  来源:igfitidea点击:

Eclipse MAC - Comment / Uncomment - keyboard shortcut

eclipsekeyboard-shortcutseclipse-pdt

提问by space_balls

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

我刚刚通过eclipse PDT升级,无法使用键盘快捷键

command+ shift+ cto comment /uncomment

command+ shift+c评论/取消评论

any help would be great. Thanks.

任何帮助都会很棒。谢谢。

采纳答案by space_balls

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"

  1. 前往 - http://sourceforge.jp/projects/pdt-tools/releases/51060- 并下载文件“org.eclipse.php.ui_2.2.1.v20101001-2300.jar”

  2. 打开你的 eclipse 文件夹 - /Applications/ecplise/plugins

  3. 将“org.eclipse.php.ui_2.2.1.v20101001-2300.jar”替换为刚刚下载的那个

  4. 打开终端

  5. 导航到您的 eclipse 文件夹 - /Applications/eclipse

  6. 输入“./eclipse -clean”

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

这修复了您的键盘快捷键,但在我的情况下,我需要从 command + / 重新映射到 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

感谢 slomojo 为此- 7. 转到 windows -> 首选项 -> 常规设置 -> 键并更新以下 http://img703.imageshack.us/img703/264/bildschirmfoto20110915u.png

hope this helps.

希望这可以帮助。

回答by ocodo

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

看看 Eclipse > Preferences > General Settings > Keys

The shortcut may have been overridden by another one.

快捷方式可能已被另一快捷方式覆盖。

回答by tk_

Single line

单线

Toggle of same keys

切换相同的键

commentCmd+ Shift + C

评论Cmd+ Shift +C

uncommentCmd+ Shift + C

取消注释Cmd+ Shift +C

Multiline

多线

commentCmd+ /

评论Cmd+/

uncommentCmd+ \(note the backslash)

取消注释Cmd+ \(注意反斜杠)

Hope this helps!

希望这可以帮助!