Eclipse MAC - 注释/取消注释 - 键盘快捷键
我刚刚通过 eclipse PDT 升级,无法使用键盘快捷键
command + shift + c 来注释/取消注释
任何帮助都会很棒。 谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
所以我不太确定升级时发生了什么,但解决方案如下
前往 - http://sourceforge.jp/projects/pdt-tools/releases/51060 - 并下载文件“org.eclipse.php.ui_2.2.1.v20101001-2300.jar”
打开 Eclipse 文件夹 - /Applications/ecplise/plugins
将“org.eclipse.php.ui_2.2.1.v20101001-2300.jar”替换为您刚刚的那个下载
打开终端
导航到您的 eclipse 文件夹 - /Applications/eclipse
输入“./eclipse -clean”
这修复了您的键盘快捷键,但在我的我需要从 command + / 重新映射到 command + shift + c
感谢 slomojo 的帮助-
7. 进入窗口->偏好->常规设置->键并更新以下内容
http://img703.imageshack.us/img703/264/bildschirmfoto20110915u.png
希望这有帮助。
So i'm not really sure what happend when I upgraded but the solution is as follows-
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"
open up your eclipse folder - /Applications/ecplise/plugins
replace the "org.eclipse.php.ui_2.2.1.v20101001-2300.jar" with the one you just downloaded
open terminal
navigate to your eclipse folder - /Applications/eclipse
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.
看看 Eclipse >首选项>常规设置>键
该快捷键可能已被另一个快捷键覆盖。
Have a look in Eclipse > Preferences > General Settings > Keys
The shortcut may have been overridden by another one.
单行
相同键的切换
comment Cmd + Shift + C
取消注释 Cmd + Shift + C
多行
注释 Cmd + /
取消注释 Cmd + \(注意反斜杠)
希望这有帮助!
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!
2022 年 5 月,我的 MacBook Pro 2019 =>选择要注释或取消注释的代码,然后执行以下操作:按
command 7
进行注释,按command 7
取消注释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 andcommand 7
to uncomment