IDEA常用配置

注意:以下配置是按照IntelliJ IDEA ULTIMATE 2017.2.2版本,其他版本可能略有不同

1. 修改字体

File -> Settings -> Editor / Font

Font: Consolas

Size: 14

2. 过滤文件

File -> Settings -> Editor / File Types

在右侧的Ignore files and folders中添加需要过滤的文件,以下供参考:

*.hprof;*.iml;*.pyc;*.pyo;*.rbc;*.yarb;*~;.DS_Store;.git;.hg;.idea;.project;.svn;CVS;__pycache__;_svn;vssver.scc;vssver2.scc;

3. 代码补全忽略大小写

File -> Settings -> Editor -> General / Code Completion

在右侧的Code Completion中,将Case sensitive completion改为 None

4. 修改编码

File -> Settings -> Editor -> File Encodings

修改右侧的Global Encoding和Default encoding for properties files为 UTF-8

5. Tomcat 修改jsp等页面自动部署

在Tomcat的Run/Debug Configuration中,修改 On 'Update' action 和 On frame deactivation为Update classes and resources

6. 安装插件

File -> Settings -> Plugins -> 选择右侧的“Browse repositories”,搜索需要的插件

(1). Free MyBatis plugin

(2). JRebel for IntelliJ(收费)

7. Maven路径配置

File -> Settings -> Build, Execution, Deployment -> Build Tools -> Maven

配置Maven home directory

8. 代码跟随

勾选Autoscroll from Source

IDEA常用配置

9. 逐级显示SVN改动的文件

Settings -> Version Control -> 勾选Show directories with changed descendants

IDEA常用配置

10. 文件头部作者和日期模板

Settings -> Editor -> File and Code Templates,在右侧的Includes中的File Header中添加 @author和@Date

IDEA常用配置

11. 我希望每次开启工具时,由我选择开启哪个项目,而不是直接开启上次的所有的项目;我希望在新的窗口开启新的工程

IDEA常用配置

More coming soon...