Mac下AndroidStudio的常用快捷键

以下为Mac下的AndroidStudio的常用快捷键,均为自己整理,亲测有效。

快捷键 描述
command + D 复制整行
command + F 查找当前类
command + R 替换当前类
command + Z 撤销
command + , 打开prefences
command + ; 打开ProjectStructure
command + [ 返回到上一次编辑的地方
command + ] 前进到上一次编辑的地方
command + delete 删除当前行
command+shift+F 全局搜索
command+shift+U 大小写切换
command+shift+Z 取消撤销
command+shift+enter 在当前行下添加一行,光标定位到行首
command+option+F 抽取成成员变量
command+option+M 抽取成方法
command+option+L 格式化
command+option+V 自动声明变量(相当于eclipse的ctrl+2,L自动生成变量)
command+option+enter 在当前行上添加一行,光标定位到行首
option + enter 导包
option + ⬆️ 选择当前光标处所在的单词、行或段
shift + ↕️↔️ 从开始选中行
shift+option+ ↕️ 整行移动
shift+option+ ↔️ 整个单词选中
ctrl + J 显示该方法或类的api
ctrl + N 鼠标移动到下一行
ctrl + P 鼠标移动到上一行
ctrl + O 快捷覆写方法
ctrl + option + H 查找调用位置
ctrl + option + O 清除无效引用

如需转载,请注明出处:YauLam’s Blog,thank u~