Mac下Android Studio快捷键

  • cmd+O:找class文件
  • shift+cmd+O:找文件
  • cmd+E:最近文件
  • cmd+D:
    1. 在Project view下选中两个目录,则比较之
    2. 选中两个jar,则比较之
    3. 复制当前行或所选块
  • contr+空格:基本代码补全
  • contr+shift+空格:智能代码补全
  • cmd+K:Invoke the Commit Changes dialog
  • cmd+F:shows the search pane in file
  • cmd+R:replace string in file
  • cmd+P:打开方法参数形式
  • shift+cmd+F:shows the search pane
  • shift+cmd+R:replaces string
  • option+enter:Edit RegExp
  • contr+T:refactoring applicable to the current context
  • contr+.:When using autopopup Code Completion,you can select the first item using contr+.. The select name is automatically entered in the editor followed by dot.
  • option+F12:launch the embedded local terminal.
  • F1:
    1. When in a Code Completion lookup,press F1 to show documentation for a lookup item, including class constructors.
    2. To quickly see the documentation for a class or method at caret.
  • shift+F1:在光标处以浏览器形式打开文档
  • option+F7:全局找特定的类、方法、变量所调用的地方
  • shift+cmd+F7:当前文件下高亮查找
  • cmd+G and shift+cmd+G:在高亮用法移动
  • cmd+B:To navigate to the declaration of a class, method or variable used somewhere in the code,position the caret at the usage and press it.
  • option+cmd+B:定位到抽象方法的实现处
  • cmd+F12:Navigate in the currently edited file.
  • shift+F6:Rename your classes,method and variables with automatic correction of all places where they are used.
  • contr+O:重写方法
  • contr+I:实现接口
  • cmd+N:Generate getter and setter methods for any fields of class in the editor.
  • option+cmd+V:选中一行链式调用,然后按此快捷键就可以以新变量来引用此链式调用
  • cmd+/:comments or uncomments the current line or selected block with //…
  • option+cmd+/:comments or uncomments with /*…*/
  • contr+shift+Q:查看方法定义
  • F2/shift+F2:在语法错误中上下移动
  • option+cmd+up/option+cmd+down:在编译错误中上下移动
  • cmd+J:Complete any valid Live Template abbreviation
  • contr+shift+J:合并行
  • shift+cmd+V:粘贴当前剪贴板
  • contr+H:查看继承结构
  • option+F8:调试模式中查看值
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值