比如说你想要在格式化代码的时候让缩进变成两格而不是四格,那么就需要进行配置。
如何配置?
在项目中使用一个文件.editorconfig
EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.
http://editorconfig.org/
详情可看链接或者在自行搜索相关配置项
配置完成后,重启IDEA,生效。
比如说你想要在格式化代码的时候让缩进变成两格而不是四格,那么就需要进行配置。
如何配置?
在项目中使用一个文件.editorconfig
EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.
http://editorconfig.org/
详情可看链接或者在自行搜索相关配置项
配置完成后,重启IDEA,生效。