Alex Spurling
Alex Spurling

Reputation: 55864

Keyboard shortcut to display error in IntelliJ

I like to use my mouse as little as possible for health reasons. Almost all the common tasks in IntelliJ I can do via keyboard shortcuts, except for displaying the message of an error. How can I have a keyboard shortcut that will show the tooltip of the highlighted error?

For example, I have an error such as:

enter image description here

Then I hit [magic-keyboard-command] and I get:

enter image description here

In Eclipse this is possible by pressing F2. Is there an equivalent in IntelliJ?

Upvotes: 72

Views: 16363

Answers (2)

atreeon
atreeon

Reputation: 24087

I use F2 on the mac, it cycles round all the errors in a single file and displays the error information for each.

In addition, to find all project errors what I do is this:

  1. cmd+2 - go to error list (this might be different for diff languages)
  2. press enter key
  3. make change to fix bug
  4. back to step 1 (sometimes escape key will help also)

Upvotes: 7

Varon
Varon

Reputation: 3916

The standard Error Description shortcut for JetBrains tools is Ctrl+F1 (Cmd+F1 on Mac).

Upvotes: 107

Related Questions