快捷键

这里只能提供日常用到的快捷键,如需查看所有快捷键/自定义快捷键,Settings(ctrl + alt + s)→keymap 更多快捷键

设置

动作 快捷键
设置 ctrl + alt + s
project structure ctrl + shift + alt + s

编辑

动作 快捷键
搜索 双击 shift
修改名称 shift + f6
代码提示 ctrl + space
智能提示 ctrl + shift + space
代码补全 ctrl + alt + space
优化包 ctrl + alt + o
导入包 alt + enter
insert alt + insert
折叠 ctrl + "-"
折叠所有 ctrl + shift + "-"
展开 ctrl + "+"
展开所有 ctrl + shift + "+"
大小写转化 ctrl + shift + u
删除行 ctrl + y
复制代码并插入 ctrl + d
格式化 ctrl + alt + l
当前行上移 ctrl + shift + ↑
当前行下移 ctrl + shift + ↓
查找文件 ctrl + shift + n
搜索内容 ctrl + shift + f
调用链 ctrl + alt + h
复制文件路径 ctrl + shift + c
同步 ctrl + alt + y
重构 ctrl + shift + alt + t
切换 ctrl + tab
选中 ctrl + w
Assigned to ctrl + shift + a
粘贴历史 ctrl + shift + v
最近浏览 ctrl + e
定位行 ctrl + g
上一光标位置 ctrl + alt + ←

启动/运行

动作 快捷键
启动 shift + f10
停止 shift + f2
Debug shift + f9
断点切换 ctrl + f8
查看断点 ctrl + shift + f8

VCS

动作 快捷键
更新 ctrl + t
提交 ctrl + k