Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 893
Alex Spurling Avatar asked Nov 12 '12 15:11

Alex Spurling


People also ask

How do you jump to errors in IntelliJ?

Navigate between errors or warnings To jump to the next or previous found issue in your code, press F2 or Shift+F2 respectively. Alternatively, from the main menu, select Navigate | Next / Previous Highlighted Error. IntelliJ IDEA places the caret immediately before the code issue.

What is Ctrl K in IntelliJ?

I think Android Studio/IntelliJ doesn't play that well, for me, I changed Android Studio Keymap to Eclipse as I used to (My collection tips) and to use Ctrl + K , I press search the string first: Select the text we want to search. Press Ctrl + F , Enter. Then can use: Ctrl + K in any file we are on.

What is Ctrl Shift O in IntelliJ?

In Eclipse, you press CTRL + SHIFT + O “Organize Imports” to import packages automatically. For IntelliJ IDEA, if you press CTRL + ALT + O “Optimize Imports”, it just removes some unused imports, never imports any package.

What is Ctrl Alt L in IntelliJ?

Sometimes code formatting can get out of sync, but there's an easy fix in IntelliJ IDEA. You can use ⌘⌥L (macOS), or Ctrl+Alt+L (Windows/Linux) to reformat a selection of code according to your reformat settings.


2 Answers

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

like image 60
Varon Avatar answered Sep 28 '22 09:09

Varon


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

like image 30
atreeon Avatar answered Sep 28 '22 09:09

atreeon