一、mac系统键盘和符号对应关系
键盘 |
符号 |
Control或Contrl |
⌃ |
Caps Lock或“中/英” |
• |
Command或 Cmd |
⌘ |
Option或 Alt |
⌥ |
Shift |
⇧ |
二、mac系统自有快捷键
快捷键 |
实现功能 |
command+space |
聚焦搜索 |
command +M |
最小化当前窗口 |
command+Q,长按 |
关闭当前程序(文件夹不适用) |
command+S |
保存 |
command+A |
全选 |
command+tab |
切换app界面 |
control+command+Q |
锁屏 |
control+command+F |
最大化当前窗口 |
选中文件+enter |
文件重命名 |
三、IDEA开发工具快捷键
快捷键 |
实现功能 |
command+N |
1、光标在代码编辑界面时,生成setter getter等方法 2、光标在左侧工程结构时,创建新类/包等 |
command+F |
当前文件查找 |
command+H |
显示层次结构 |
command+delete |
删除当前行 |
command+D |
复制一行到下行 |
command+L |
跳转到指定行 |
command+P |
显示方法参数信息 |
command+X |
选中全部 |
command+1 |
打开Project视图 |
command+E |
最近浏览的文体 |
command+R |
查找和替换 |
command+F12 |
查找当前类的方法 |
command+alt+M |
将当前选中到代码块抽取为方法 |
command+alt+U |
在当前类中,查看继承关系视图 |
command+alt+左键/右键 |
将光标返回到上次查看代码的地方 |
command+alt+L |
格式化代码 |
alt+enter |
生成局部变量(introduce local variable) |
double shift |
(快速按两次shift键)快速查找 |
shift+alt+⬇️ |
将当前代码整体下移一行(上移同理) |
shift+ctrl+R |
编译并执行 |
fn+左键 |
将光标定位到当前代码行最左侧(最右侧同理 ) |
shift*2 |
快速查找 |
shift+F6 |
选中当前对象,重命名 |
shift+alt+⬇️ |
将当前代码整体下移一行 |
option+command+space |
智能提示 |
option+command+B |
跳转至实现处 |
option+command+L |
格式化代码 |
option+command+T |
建立包围代码块try/catch if/else等 |
option+command+V |
补全变量 |
option+command+⬅️/➡️ |
跳转到前/后面编辑处 |
option + ⬆️/⬇️ |
连续选中代码 |
option+enter |
快捷修复 |
shift+command+F |
全局查找 |
shift+command+O |
优化导包 |
shift+command+⬆️/⬇️ |
上/下移动代码 |
shift+command+➕/➖ |
展开/折叠所有代码 |
shift+shift |
查找类 |
control + ⬆️/⬇️ |
方法间移动 |
未完待续。。。。。。