来自 checkstyle 配置的 IntelliJ IDEA 代码格式 [英] IntelliJ IDEA code format from checkstyle configuration

查看:58
本文介绍了来自 checkstyle 配置的 IntelliJ IDEA 代码格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我决定为 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.

Plugin On GitHub

How to set it up

这篇关于来自 checkstyle 配置的 IntelliJ IDEA 代码格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆