command+A/C/X/V/Z 全选/复制/剪切/粘贴/撤销
command+shift+Z 重做
command+option+L 格式化
command+N generate功能,生成setter/getter/toString等等
command+option+M 将选中代码提取成单独方法
command+option+left/right 光标上一个/下一个位置
command+shift+backspace 最近一次编辑的位置
command+shift 生成单测
command+F 搜索
command+shift+F 全局搜索
command+R 替换
command+shift+R 全局替换
command+O 查找类
command+shift+O 查找文件
command+K git提交到缓存
command+shift+K git代码push到远程
shift连续两次 搜索任何东西
Mac 键盘符号和修饰键说明
⌘
——>Command
⇧
——>Shift
⌥
——>Option
⌃
——>Control
↩︎
——>Return/Enter
⌫
——>Delete
⌦
——>向前删除键(Fn + Delete)
↑
——>上箭头
↓
——>下箭头
←
——>左箭头
→
——>右箭头
⇞
——>Page Up(Fn + ↑)
⇟
——>Page Down(Fn + ↓)
⇥
——>右制表符(Tab键)
⇤
——>左制表符(Shift + Tab)
⎋
——>Escape(Esc)
End
——>Fn + →
Home
——>Fn + ←
Part 1:Editing(编辑)
快捷键 | 作用 |
---|---|
Control + Space |
基本的代码补全(补全任何类、方法、变量) |
Control + Shift + Space |
智能代码补全(过滤器方法列表和变量的预期类型) |
Command + Shift + Enter |
自动结束代码,行末自动添加分号 |
Command + P |
显示方法的参数信息 |
Control + J |
快速查看文档 |
Shift + F1 |
查看外部文档(在某些代码上会触发打开浏览器显示相关文档) |
Command + 鼠标放在代码上 |
显示代码简要信息 |
Command + F1 |
在错误或警告处显示具体描述信息 |
Command + N , Control + Enter , Control + N |
生成代码(getter 、setter 、hashCode 、equals 、toString 、构造函数等) |
Control + O |
覆盖方法(重写父类方法) |
Control + I |