Mac 下android studio 快捷键

来源:互联网 发布:linux lamp一键安装 编辑:程序博客网 时间:2024/04/28 01:30

快速跳转到实现

查看某个接口在哪里被实现操作步骤:菜单栏: Navigate —> Implementation快捷键:Mac: Option + Command + BWindows\/Linux: Ctrl + Alt + B

表格说明

快捷键 描述 F1 Quick Documentation 打开方法类等的文档 F2 Next Highlighted Error 顺序快速定位高亮错误 Shift + F2 Previous Highlighted Eorror 逆序快速定位高亮错误 F3 Toggle Bookmark(添加/移除书签) Command + F3 Show Bookmarks(打开书签对话框) Shift + F2 Previous Highlighted Eorror 逆序快速定位高亮错误 F4 Jump to Source(跳转到源码) F5 Copy.. (复制当前文件) F6 Move.. (移动当前文件) F7 Step Into(debug时跳进方法内部) F8 Step Over(debug时跳到下一行) Command + , Preferences… (打开开发工具设置界面) Command + Delete Delete Line(删除行) Command + D Duplicate Line or Block(复制行或者代码块) Command + W Close active editor tab (关闭激活的页签) Command + P Parameter Info(方法参数提示) Command + Q Exit(退出开发工具) Command + K Check In Project(展示本地改动及提交代码) Command + T Update Project (更新代码) Command + B Declaration(跳转到方法、类、字段等的声明) Command + F Find…(查找文本) Command + R Replace…(替换文本) Command + = Expand(展开代码) Command + - Collapse(折叠代码) Command + E Recent Files(最近打开的文件) Command + O Class…(查找类) Command + N Generate… (生成代码) Command + J Insert Live Template…(自动生成模版代码) Command + L Line… (跳转到指定行) Command + / Comment/uncomment with line comment (行注释) Command + F9 Make project (构建项目) Command + Alt + / Comment/uncomment with block comment (块注释) Command + Alt + M Extract Method (导出方法) Command + Alt + V Extract Variable (导出变量) Command + Alt + F Extract Field (导出字段) Command + Alt + C Extract Constant (导出常量) Command + Alt + L Reformat Code…(格式化代码) Command + Alt + T Surround with… (if..else, try..catch, for, synchronized, etc.) (包括代码块生成) Alt + F7 Find usages (查找引用) Command + Alt + F7 Show usages (展示引用下拉框) Command + Shift + O Go to File(跳转到文件) Command + Shift + U Toggle case for word at caret or selected block (切换选中的单词或者代码块的大小写) Double Shift Search everywhere (搜索工程中的任何位置的文件) Shift + F6 Rename…(重命名) Command + F6 Change Signature (更改方法签名) Command + N Generate (方法快捷处理) Control + O Override methods (覆盖父类的方法) Control + I Implement methods (实现接口的方法) Control + R Run (运行程序到设备) Control + D Dubug (debug程序到设备) Control + H Type hierarchy (查看类的层级结构) Control + Alt + O Optimize imports (优化导包) option + enter(回车) Extract Resource (提取字符串到string.xml文件)等操作 Command + Shift + A 万能的输入框