IntelliJ基本配置
统一文件编码(UTF-8)
1 | Settings -> Editor -> File Encodings |
行宽及指示线配置
1 | Settings -> Editor -> Code Style -> Hard wrap at |
自动删除行尾空格
1 | Settings -> Editor -> General -> Other |
文件版权头配置(copyright)
1 | Settings -> Editor -> Copyright -> Copyright Profiles |
版权信息基本格式:
1 | Copyright (c) $today.year,上海DEMO有限公司网络应用事业部. All rights reserved. |
步骤一:创建版权信息模板
步骤二:配置使用刚创建的版权信息模板
安装配置(CheckStyle-IDEA)
1 | File->settings->plugin->搜索插件:CheckStyle-IDEA->install |
配置checkstyle
自动格式化配置(Eclipse Code Formatter)
1 | File->settings->plugin->搜索插件:Eclipse Code Formatter-IDEA->install |
抑制自动import使用通配符
1 | settings->Editor->Code Style->Java->Imports->Use single class import |
- 本文链接:https://blog.springfavor.cn/2019/01/30/IntelliJ基本配置/
- 版权声明:The author owns the copyright, please indicate the source reproduced.