IntelliJ - 显示错误所在 [英] IntelliJ - show where errors are

查看:19
本文介绍了IntelliJ - 显示错误所在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让 IntelliJ 以与 Eclipse 类似的方式为您正在处理的文件连续标记错误位置?目前,我需要制作在消息面板中列出所有错误的项目,但即使如此,我也无法使用编辑器面板导航到它们.我想要简单的点/标记来指向错误/警告位置.

Is there a way to make IntelliJ mark error locations continuously for the files you are working on in the similar manner as Eclipse does? At the moment I need to make the project which lists all the errors in the message panel, but even then I cannot navigate to them using the editor panel. I would like to have simple dots/markers which would point to error/warning locations.

推荐答案

IntelliJ IDEA 即时检测当前文件中的错误和警告(除非在 File 菜单).

IntelliJ IDEA detects errors and warnings in the current file on the fly (unless Power Save Mode is activated in the File menu).

Build 后会显示其他文件和项目视图中的错误 |Make 并列在 Messages 工具窗口中.

Errors in other files and in the project view will be shown after Build | Make and listed in the Messages tool window.

对于 Bazel 用户:在运行 Compile Project (Ctrl/Cmd+F9)

For Bazel users: Project errors will show on Bazel Problems tool window after running Compile Project (Ctrl/Cmd+F9)

要在错误之间导航,请使用 Navigate |下一个突出显示的错误 (F2)/上一个突出显示的错误 (Shift+F2).

To navigate between errors use Navigate | Next Highlighted Error (F2) / Previous Highlighted Error (Shift+F2).

错误条纹标记颜色可以在这里更改:

这篇关于IntelliJ - 显示错误所在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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