可以看出windows下的ctrl就是mac下的command,如windows下的删除ctrl+x,在mac下是command+x
mac下的option就是windows下的alt
总结如下:
替换:ctrl+R control + shift + R
查找文件:ctrl+N command + N
查找全部内容:ctrl+shift+F control + shift + F ====注意与拼音的快捷键的重叠
重命名:shift+F6 shift+F6
导入包: alt+enter option + enter
删除行 ctrl+X command+X
重写父类方法 ctrl+O command+O
get/set :alt+insert control+N
try/catch的快捷键 ctrl+alt+t command + option + T
格式化代码 ctrl+Alt+L command+ option +L
整行代码向上/下移动 ctrl+Shift+箭头 command+Shift+箭头
撤回 ctrl+Z command + Z
查找方法调用的地方 alt+F7 option+F7
查找实现一个类或者接口子类 ctrl + B父类或父方法定义ctrl + alt + B子类或子方法实现 command+B 和 command+option+B
将选中的代码提取为方法 ctrl+Alt+M command+option+M
返回上次查看的代码 ctrl+Alt+方向键 command+option+方向键
显示类的方法 command+7
参考:
1、https://www.cr173.com/html/56164_all.html
2、https://blog.youkuaiyun.com/lisongjia123/article/details/54949364