且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

来自 checkstyle 配置的 IntelliJ IDEA 代码格式

更新时间:2023-09-17 23:33:40

UPDATE:从 4.24.0 插件版本开始支持,

I've decided to contribute to android maven plugin.

They use quite specific code style format. It will take some time for me to modify IDEA code format rules to satisfy their requirements.

Fortunately there is checkstyle configuration. I've already installed check-style plugin for IDEA and immediately see where my current formatting is wrong.

Unfortunately I didn't find way to import checkstyle configuration into IDEA formatting rules.

I'm interested if it's possible.

UPDATE: supported since 4.24.0 plug-in version, see here for details.


Original answer from 2013:

Not possible yet, please star/vote to track the progress of the issue.

Plugin On GitHub

How to set it up