IntelliJ - show where errors are

后端 未结 10 2450
失恋的感觉
失恋的感觉 2020-12-02 10:44

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 pr

相关标签:
10条回答
  • 2020-12-02 11:15

    In IntelliJ Idea 2019 you can find scope "Problems" under the "Project" view. Default scope is "Project".

    0 讨论(0)
  • 2020-12-02 11:17

    Besides, you can choose going to next error only (ignore warning) by:

    1. Right click the Validation Side Bar.
    2. On the context menu, choose the Go to high priority problems only

    it works for Intellij Idea 12

    0 讨论(0)
  • 2020-12-02 11:17

    Do you have a yellow icon like this [_] at the bottom of the main window? It is a "type-aware highlighting" switch which could be disabled accidentally. You should re-enable it by clicking on the icon.

    0 讨论(0)
  • 2020-12-02 11:18

    In my case, I unknowingly unchecked 'Error Stripe Mark' option (Idea 2018.2: Settings > Editor > Color Scheme > General and expand `Error and Warnings' & click 'Error').

    Fix is to check 'Error Stripe Mark' option of 'Error' (as highlighted in the below image). Now you will see the error marks in scrollbar area.

    0 讨论(0)
  • 2020-12-02 11:20

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

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

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

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

    Error Stripe Mark color can be changed here:

    error stripe mark

    0 讨论(0)
  • 2020-12-02 11:26

    For those who even yet have the problem, try enabling "Build project automatically" in the Java compiler settings and see if that makes a difference as it worked for me.

    0 讨论(0)
提交回复
热议问题