注释快捷的Andr​​oid工作室 [英] Comment shortcut Android Studio

查看:127
本文介绍了注释快捷的Andr​​oid工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找有用的Andr​​oid 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.

这篇关于注释快捷的Andr​​oid工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆