搜索
全局搜索:Command + Shift + F
(Find in Path)
类搜索:Command + N
(Go to Class)
文件搜索:Command + Shift + N
(Go to File)
符号搜索:Command + Option + O
(Go to Symbol)
最近文件:Command + E
(Recent Files)
查找用法:Option + F7
(Find Usages)
导航
跳转到行:Command + L
返回上一个位置:Command + [
前进到下一个位置:Command + ]
查看继承关系:Control + H
(Type Hierarchy)
快速文档:F1
(Quick Documentation)
编辑
格式化代码:Command + Option + L
移动代码块:Command + Shift + ↑/↓
重命名:Shift + F6
优化导入:Control + Option + O
提取方法:Command + Option + M
大小写转换:Command + Shift + U
调试
步过(Step Over):F8
步入(Step Into):F7
步出(Step Out):Shift + F8
继续执行(Resume):Command + Option + R
其他实用快捷键
生成代码(Generate):Command + N
(如构造函数、getter/setter)
实现方法(Implement Methods):Control + I
环绕代码(Surround With):Command + Option + T
(如 try-catch、if)
快速修复(Quick Fix):Option + Enter
参数信息(Parameter Info):Command + P
版本控制
提交更改:Command + K
更新项目:Command + T
查看变更历史:Option + Shift + C
评论区