注释快捷的Android工作室 [英] Comment shortcut Android Studio
问题描述
我在寻找有用的Android Studio的键盘快捷键评论code,在崇高的文本或者Eclipse。
I'm searching for useful Android Studio keyboard shortcut for commenting code, as in Sublime Text or Eclipse.
当我preSS无论是 CMD + /
或 CMD +少校+ /
什么也没有发生...
When I press either cmd + /
or cmd + maj + /
nothing happens...
推荐答案
行注释同时按住:<大骨节病> Cmd的骨节病> + <大骨节病> / 骨节病>
块注释持有所有三个:<大骨节病> Cmd的骨节病> + <大骨节病>替代骨节病> + <大骨节病> / 骨节病>
Block Comment hold all three: Cmd + Alt + /
行注释同时按住:<大骨节病> Cmd的骨节病> + <大骨节病> + = 骨节病>
块注释持有所有三个:<大骨节病> Cmd的骨节病> + <大骨节病>替代骨节病> + <大骨节病> + = 骨节病>
Block Comment hold all three: Cmd + Alt + + =
<击> 问题:在某些Mac键盘上,没有数字键盘,以便在Android Studio的快捷方式是不正确的。
修复:编辑快捷键 ALT + /
或 ALT +少校+ /
块评论它的工作,因为它应该(其显示 ALT在键盘映射。
)。的注:它将覆盖某些Mac快捷键像反斜杠这是在 ALT已经定义的
的击> \\
)+少校+ /
Issue: on some mac Keyboard, there is not numeric pad so the Android Studio shortcut is not correct.
Fix : edit shortcut to alt + /
or alt + maj + /
for block comment and its working as it should (it's displaying alt.
in the keymap). Note : it will override some Mac shortcuts like the backslash \
) which is already defined on alt + maj + /
.
更新 2015年7月1日:在所有Mac,似乎<大骨节病> Cmd的骨节病> + <大骨节病> + = 骨节病>工作完美。
UPDATE 7/01/2015: on every mac, it seems that Cmd + + = is working perfectly.
行注释同时按住:<大骨节病>控制骨节病> + <大骨节病> / 骨节病>
块注释持有所有三个:<大骨节病>控制骨节病> + <大骨节病>移骨节病> + <大骨节病> / 骨节病>
Block Comment hold all three: Ctrl + Shift + /
同样的方式来删除注释块。
Same way to remove the comment block.
这篇关于注释快捷的Android工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!