Edit ->Column Selection Mode 开启列操作模式,记得关闭
command +alt(opt) +L 格式化代码
command +F 在类内部查找关键字
command +shift+Enter 补全if(){}
command +shift+U 大小写转换
command +alt(opt)+C 生成常量(例:public static final int A =0;)
command +delete 删除行
command +alt(opt)+F 生成Field变量
command +alt(opt)+V 补全表达式( getContentView(); 变成 int a =getContentView(); )
command +O 全局查找类
command +shift+F 全局搜索
command +shift+O 全局搜索文件
command +alt(opt)+M 抽取方法
command +alt(opt)+Enter 光标上移
command+Enter 光标所在行向下空一行,光标不动
shift+Enter 光标移动到下一行并空行,尤其对于光标在行首的情况
command+shift+上下键 移动行
command+D 复制行
ctrl +O 实现类里方法
ctrl+alt+空格 补全new后面的操作
command+P查看new操作构造方法内的参数类型(把光标放到括号里)
shift+F6 全局修改变量
command+alt(opt)+T 选中代码可以添加try catch if else 等
command+N 快速生成方法,比如快速生成toString()方法,gsonFormat,getter,setter方法(直接帮你生成)