Intellij IDEA checkstyle [英] Intellij IDEA checkstyle
本文介绍了Intellij IDEA checkstyle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在尝试将我的支票风格导入IDEA 14时遇到了问题。
这就是我的工作:
I've got a problem trying to import my check-style to IDEA 14. That's what I do:
- 文件 - >设置 - >检查 - >导入
- 我选择了我的checkstyle.xml然后我不知道为什么会创建TempProfile。
- 嗯,好吧,看起来这个TempProfile可以使用我的checkstyle.xml检查我的代码,但事实并非如此!
I不知道该怎么做。我需要你的帮助。
I don't know what to do else. I need your help guys.
谢谢。
推荐答案
通过Checkstyle配置页面进入文件→设置,然后在搜索框中输入 checkstyle
:
Go to the Checkstyle configuration page via File → Settings, then typing checkstyle
into the search box:
按 plus 图标添加checkstyle.xml。单击标有 Active 的列中的复选框激活checkstyle.xml。
Press the plus icon to add your checkstyle.xml. Activate your checkstyle.xml by clicking the checkbox in the column labeled Active.
就是这样!
如果你想要实时扫描,你可以进入检查对话框并激活实时扫描:
That's it!
If you want real-time scans, you can go to the Inspections dialog and activate the real-time scan:
这篇关于Intellij IDEA checkstyle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文