idea google style配置

来源:互联网 发布:李炎恢php怎么样 编辑:程序博客网 时间:2024/05/22 12:53

1.加入googleStyle.xml. (格式化文件)
2.Code Style中。keep Maximum Blank lines 改为 1 1 1 。tab size 改为2.
2.1 import layout 中将 static import 放在最前面,剩下的删掉。 imports 就会按照字母顺序排列。
2.2 wrapping and braces 中 keep when reformatting 勾选 ensure righ margin is not exceeded. (格式化时保证一行不会超过指定字符长度。eg:100)

3.安装 bazel 插件,指定bazel安装目录。

4.安装 save Actiong 插件。 保存代码时自动格式化(包括imports)

5.Setting ->editor -> general-> appearance-> 勾选 show whitespaces & show method spearators.

其他:
spring boot项目 设置
spring.output.ansi.enabled=ALWAYS (console 彩色输出)

6.安装 Grep Console 插件,(console 彩色输出).

7.keymap-> main-> menu ->navigate back和forward改成喜欢的快捷键

8.安装lombok 插件。 “Settings > Build > Compiler > Annotation Processors”

0 0
原创粉丝点击