如何禁用IntelliJ IDEA的类型检查? [英] How do I disable IntelliJ IDEA's type inspection?

查看:1803
本文介绍了如何禁用IntelliJ IDEA的类型检查?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IntelliJ IDEA的Scala插件多次抱怨类型不匹配,即使有问题的代码编译得非常好。我觉得这很烦人,想要禁用此功能。我没有在设置中搜索任何相关选项。我如何摆脱它?

解决方案

通过单击此符号关闭'Type Aware Highlighting'可能会有所帮助。 / p>



编辑



还可以启用和禁用许多Scala特定检查。可以通过单击上面第一个屏幕截图中显示的Inspector图标(位于Type Aware图标左侧)并单击在弹出对话框中配置检查来访问这些文件。




IntelliJ IDEA's Scala plugin many times complains about "type mismatch" even though the code in question compiles absolutely fine. I find this quite irritating, and would like to disable this feature. I didn't find any relevant option on searching in the settings. How do I get rid of it?

解决方案

Switching off 'Type Aware Highlighting' by clicking this symbol may help a bit.

Edit

There are also a number of Scala specific inspections which can be enabled and disabled. These can be accessed by clicking on the 'Inspector' icon (just to the left of the 'Type Aware' icon) shown in the first screenshot above and clicking 'configure inspections on the pop-up dialog.

这篇关于如何禁用IntelliJ IDEA的类型检查?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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