文章目录
设置显示常见的视图
设置主题 && 设置窗体及菜单的字体及字体大小
设置编辑区主题
Ctrl + 鼠标滚轮 快捷键来控制代码字体大小显示
设置自动导包功能
设置显示行号和方法间的分隔符
忽略大小写提示
设置取消单行tabs的操作
设置默认的字体、字体大小、字体行间距
控制台输出的字体及字体大小
修改类头的文档注释信息
快捷键生成serialVersionUID
鼠标点击类,按alt+entry
设置项目文件编码
Transparent native-to-ascii conversion
主要用于转换 ascii,一般都要勾选,不然 Properties 文件中的注释显示的都不会是中文。
设置自动编译
单行注释与代码对齐
打开IDEA时设置不重新打开最近的项目
其他配置
- git
- maven
- jdk
- 插件
- RainBow Brackets(彩虹括号)
- Maven Helper
- maven Dependency Helper
ctrl+shift+d
- ignore
- lombok
- GsonFormat
- GenerateAllSetter
- Free Mybatis plugin
- MyBatis Log Plugin
- Restfultookit
- String Manipulation
- statistic
- Translation
- Alibaba Java Coding Guidelines
- CodeGlance
常用快捷键
idea | 英文描述 | 中文描述 |
---|---|---|
ctrl+shift+n | Navigate->File | 找工作空间的文件 |
ctrl+n | Navigate->Class | 找类定义 |
alt+f7 | Edit->Find->Find Usages | 查找方法在哪里调用.变量在哪里被使用 |
ctrl+t | Other->Hierarchy Class | 看类继承结构 |
ctrl+f12 | Navigate->File Structure | 搜索一个类里面的方法 |
ctrl+alt+t | Code->Surround With | 生成常见的代码块 |
ctrl+alt+v | Refactor->Extract->Variable | 抽取变量 |
ctrl+alt+m | Refactor->Extract->Method | 抽取方法 |
ctrl+alt+左箭头 | Navigate->Back | 回退上一个操作位置 |
ctrl+alt+右键头 | Navigate->Forward | 前进上一个操作位置 |
ctrl+home | Move Caret to Text Start | 回到类最前面 |
ctrl+end | Move Caret to Text End | 回到类最后面 |
ctrl+e | View->Recent Files | 最近打开的文件 |
alt+enter | Other->Show Intention Actions | 提示可能的操作 |
ctrl+shift+f | Find in Path | 全局搜索 |
alt+shift+上/下箭头 | Code->Move Line Up/Down | 移动一行代码 |
trl+/ | Other->Fix doc comment | 方法注释 |
alt+insert | Generate | 生成getter,setter,tostring等 |