自动导包: alt + enter
清除无用包 ctrl + alt + o
剪切当前行: ctrl + x
删除当前行:ctrl + y
复制当前行:ctrl + d
注释当前行:ctrl + /
多行注释: ctrl + alt+ /
移动当前行: alt + shift + up/down
生成getter和setter方法 alt + insert
查看类方法 ctrl + F12
快速查找类文件 ctrl + n
智能补全 ctrl + shift + space
查看继承关系 ctrl + H
实现或重载方法 ctrl + o
选中方法或类 快速查看文档 ctrl + Q
快速查看操作 ctrl + shift + a 可以通过该快捷键查看所有操作比如输入 structure
查看类的所有方法 alt + 7
格式化代码 ctrl + alt + l
大小写切换 ctrl +shift + u
查看类文档 ctrl + Q
在布局文件中UI预览界面选择控件进入对应的代码区: ctrl + B
全局查看资源 ctrl + shift + F
调试快捷键:
F8 单步调试 相当于Eclipse中的F6
F9 跳过当次调试
F7 进入方法
Alt + Shift + f7 强制进入方法
Shift + F8 跳出方法
ctrl + F2 终止调试