简体   繁体   English

如何使IntelliJ Idea仅显示编译器生成的警告和禁止智能检查?

[英]How to make IntelliJ Idea display only compiler generated warnings and supress intelligent inspections?

我正在研究IntelliJ Idea14。是否有解决上述问题的方法?

Under "Inspections" in the Settings configuration, you can change your inspections profile to exclude the ones you don't want. 在“设置”配置中的“检查”下,您可以更改检查配置文件以排除不需要的检查配置文件。 Also, at the bottom right of the application window you can click on the "little guy in the hat" and turn down the inspections on a file-by-file basis. 同样,在应用程序窗口的右下角,您可以单击“戴着帽子的小家伙”,然后逐个文件地拒绝检查。

Suppressing inspection in general may not be good idea. 一般而言,禁止检查可能不是一个好主意。 You could create multiple custom profiles and keep it as part of project. 您可以创建多个自定义配置文件 ,并将其保留为项目的一部分。 Create a new one called "minimum", which will have inspection that is meaningful to full team. 创建一个新的“ minimum”,它将对整个团队有意义。 Set that as default for project 将其设置为项目的默认值

Create another which will have much bigger set and run occasionally else where. 创建另一个具有更大集合的集合,并偶尔在其他地方运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM