来自 checkstyle 配置的 IntelliJ IDEA 代码格式 [英] IntelliJ IDEA code format from checkstyle configuration
问题描述
我决定为 android maven 插件做贡献.
他们使用非常具体的代码样式格式.我需要一些时间来修改IDEA代码格式规则以满足他们的要求.
幸运的是有 checkstyle 配置.我已经为 IDEA 安装了 check-style 插件,可以立即查看我当前格式错误的地方.
不幸的是,我没有找到将 checkstyle 配置导入 IDEA 格式规则的方法.
如果可能的话,我很感兴趣.
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.
这篇关于来自 checkstyle 配置的 IntelliJ IDEA 代码格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!