中文说明 未例快捷键 Idea描述
代码行向上移动 WINDOWS+向上 CODE Move Statement Up
代码行向下移动 WINDOWS+向下 CODE Move Statement Down
返回上一个位置 Back
返回下一个位置 Forward
显示建议/快速修复 Show Intention Actions Ctrl+1
大小写转换 CTRL+SHIT+U Editor Actions Toggle Case
删除代码行 CTRL+D Editor Actions Delete Line
查找引用 CTRL+G Edit Find Usages
格式华代码 CTRL+SHIT+F CODE Reformat Code
代码提示 ALT+B Code Completion Basic
代码智能提示, SmartType Command+Shift+space
调用方法写变量时会提示变量定义类型 Parameter Info Ctrl+Shift+space
进入方法、变量定义位置 Declaration Commond+G
进入方法、变量定义类 Type Declaration Commond+T
往下复制当前行或选择的代码 Duplicate Entire Lines
格式化代码 Reformat Code
代码块收缩在一起 Collapse ART + -
代码块展开 Expand ALT + -
定位到最后编辑的位置 CTRL+Q Navigate Last Edit Location
关闭当前正在编辑的窗口 CTRL+W Close Active Tab
显示最近编辑的文件 CTRL+E VIEW Recent Files
代码转成方法:windows+shit+M Refactor Extract method
代码转成变量 window+shit+L Refactor Extract Variable
值转成常量 Constant Ctrl+Shift+C
重新名 windows+shift+R Refactor rename
int index = 1; 转成: int index = INT;
值转成常量 CTRL+WINDOWS+C Refactor Extract Constant
找到下一个出错的地方 Next highlighted Error ctrl+e
修复注释 Fix doc comment
查看方法、变量代码实现,可按回车进入代码位置 Qucik Definition Ctrl+Y
查看类的结构 File Structure Ctrl+O
查代与替换 Replace In Path