问题
When using IntelliJ IDEA and writing code, and when code you wrote has an error, the only way I know to make IDEA show you the error details is to hover the mouse cursor over the problem.
But that requires moving my hands from the keyboard to the mouse. Is there a hotkey that causes that pop-up with the error message to appear, or a way to configure such a hotkey?
回答1:
On a Mac:
Cmd + Shift + F1
On Windows:
Ctrl + F1
On Linux:
Ctrl + F1
You can check for anything else in Preferences -> Keymap
回答2:
On a Mac: ⌘F1
On Windows: CtrlF1
These activate the menu item “View” → “Error Description” (which only exists when there is an error):
You can configure and search for keyboard shortcuts in Preferences → Keymap:
来源:https://stackoverflow.com/questions/19681081/how-to-make-error-pop-up-appear-using-keyboard-in-intellij-idea