smatthewenglish
smatthewenglish

Reputation: 2889

keyboard command to focus on erroneous text in IntelliJ IDE

In eclipse when you hover over some erroneous text you can press F2 to focus there. What is the equivalent procedure in IntelliJ?

Whenever I put my pointer over some error the text describing it disappears.

In Eclipse it will suggest what I can do to fix something like an unhandled IO exception. I'm sure IntelliJ can also do this because some people I know who are quite skillful programmers highly recommended it to me, but- how to do this?


That is: hover over some text at is in error, see what the error is, the options to fix it, and then choose one.

Upvotes: 0

Views: 64

Answers (2)

Pafjo
Pafjo

Reputation: 5019

The actions you are looking for is called "Error Description" and "Show Intention Actions".

  • ⌘+F1 (Ctrl+F1 on non-mac) will show the error info on based on where the caret is.
  • Alt+Enter will show the Intention Actions available based of the location of the caret.

Upvotes: 1

Bohuslav Burghardt
Bohuslav Burghardt

Reputation: 34776

If you click on the highlighted part of code, the error description will appear in a pop-up bubble as well as in statusbar.

You can then hit ALT+Enter which will offer you some options to handle the given error/warning or to disable the warning.

Upvotes: 1

Related Questions