1. 设置鼠标滑轮修改字体大小
File | Settings | Editor | General
2. 设置鼠标悬浮提示
File | Settings | Editor | General
3. 设置自动导包删包功能
File | Settings | Editor | General | Auto Import
4. 设置代码行号和方法分隔符
File | Settings | Editor | General | Appearance
5. 设置忽略大小写代码提示
File | Settings | Editor | General | Code Completion
Math case 取消勾选
6. 设置打开多个文件可分行显示
File | Settings | Editor | General | Editor Tabs
7. 设置工程编码为UTF-8(包含properties文件)
File | Settings | Editor | File Encodings
8. 设置自动编译
File | Settings | Build, Execution, Deployment | Compiler
9. 运行IDEA不直接打开上次的项目
File | Settings | Appearance & Behavior | System Settings
10. 常用快捷键
-
Alt+Enter 导入包,自动修正
-
双击Shift 查找项目的所有目录
-
Ctrl+N 查找类
-
Ctrl+Shift+N 查找文件
-
Ctrl+Alt+L 格式化代码
-
Ctrl+Alt+O 优化导入的类和包
-
Alt+Insert 生成代码(如get,set方法,构造函数等)
-
Ctrl+R 替换文本
-
Ctrl+F 查找文本
-
Ctrl+Tab/E 切换文件
-
Shift+Enter 另起一行
-
Ctrl+Space 代码提示
-
Ctrl+X 删除行
-
Ctrl+D 复制行
-
Alt+ Up/Down 在方法间快速移动定位
-
Ctrl+Shift+U 大小写转化
-
Ctrl+Shift+F12 切换文件全屏显示
-
Alt+鼠标下拉 多行同时输入代码
-
Shift+F6 重命名类、方法、变量等
-
Ctrl+F9 编译
-
Alt+F7 函数、变量、类 所有引用到的地方
-
Ctrl+Alt+V 将选中的对象赋值到外部变量中并将变量名填入参数
-
Ctrl+Alt+N 将选中的变量删除并用引用对象替换使用此变量的地方 (与Ctrl+Alt+V作用相反)
-
Alt+1 快速打开项目面板
-
Ctrl+Alt+S 快速打开Setting
-
Ctrl+Shift+↑/↓ 移动代码
-
10.fori + 回车 1-10 for循环输出
-
"yangFan".var + 回车 快速返回
-
方法().var + 回车 快速获取返回值
-
iter + 回车 快速遍历(forEach)
-
itar + 回车 快速遍历(传统 for)
-
soutv + 回车 打印临近的变量