如何在IntelliJ Idea的项目树中立即看到编译错误? [英] How to immediately see compile errors in project tree of IntelliJ Idea?

查看:304
本文介绍了如何在IntelliJ Idea的项目树中立即看到编译错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以配置IntelliJ Idea以立即在项目树中的类文件上显示编译错误。目前,如果无法编译类,我需要手动触发重新编译以查看我的类上的错误标记。

I'm wondering if it is possible to configure IntelliJ Idea to immediately show compile errors on the class files in the project tree. Currently I need to manually trigger the recompilation to see error marks on my classes if the class cannot be compiled.

推荐答案

从IntelliJ开始12可以选择在源更改时自动构建项目。在设置 - >构建,执行,部署 - >编译器中,选中自动构建项目复选框。这将立即显示项目树中的任何编译错误。

As of IntelliJ 12 there's an option to automatically build your project upon source changes. In "Settings" --> Build, Execution, Deployment --> "Compiler" check the checkbox "Build project automatically". This will immediately show any compile errors in the project tree.

这篇关于如何在IntelliJ Idea的项目树中立即看到编译错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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