211

Let's say I have a file with 10 lines and I have a problem with the name of the package (or something) and the cursor is on the last line of the text.

How can I go directly to that line to see what the problem is and what suggestions there are to remove the problem, using a shortcut?

Question: Is there a keyboard-shortcut for this?

Or something like this:

Go to the next error and Go to the previous error.

1

4 Answers 4

335

Windows and Linux

  • Go to the next error: Ctrl + .
  • Go to the previous error: Ctrl + ,
  • Show quick fixes: Ctrl + 1

Mac

  • Go to the next error: Cmd + .
  • Go to the previous error: Cmd + ,
  • Show quick fixes: Cmd + 1
13
  • 5
    On Mac, try Cmd-. and Cmd-Shift-. for next and previous. Not 100% sure though.
    – Joe Daley
    Dec 2, 2009 at 22:43
  • 25
    Is there a command to go to next error in any of the workspace project?
    – Déjà vu
    Jan 17, 2011 at 7:12
  • 4
    @ring0, poolie: we are discussing that at this related question. The short answer is "no", though there are a few helpful suggestions there. Mar 15, 2012 at 14:24
  • 30
    Any way to have it skip warnings and only goto to real errors (that show red in side bar)? Sep 28, 2012 at 15:21
  • 2
    Unfortunately it also jumps to warnings for me. Any way to change that (only jump to real errors)? Dec 20, 2013 at 9:54
42

To go to problem within project just type Shift+Alt+Q then press X. It will open the "Problems" window. Now use or to select the error/warning and press Enter to go to it.

I know it isn't simple as Crtl+. but it works for a whole project.

1
  • As a side note, and to complete answer using CTRL+.. To only show errors, you can configure the problems problems visibility level to skip warnings and only show errors.
    – el-teedee
    Dec 2, 2018 at 15:46
10

To complete the previous answers, you can use the combobox linked to the toolbar buttons for next/previous annotation to set the annotation level.

toolbar-combobox

That makes browsing through errors using ctrl+./ ctrl+ easier,

1
  • OMG I'm crying of joy this feature exists (filtering the annotation)! I wanted it years ago, now I'm again developing with Eclipse and I've found this feature thanks to your answer! Thank you ! Jun 21, 2021 at 22:08
5

TO GO TO NEXT ERROR ONLY in eclipse with Ctrl + . command, tick off warnings as shown in screenshot

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.