Eclipse – How to go to an error using only the keyboard in Eclipse

eclipsekeyboard shortcuts

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.

Best Answer

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