How to make error pop-up appear using keyboard in IntelliJ IDEA

∥☆過路亽.° 提交于 2020-06-10 02:20:30

问题


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.

Example error pop-up

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):

the menu item “View” → “Error Description”

You can configure and search for keyboard shortcuts in Preferences → Keymap:

The “Error Description” keymap in Preferences → Keymap



来源:https://stackoverflow.com/questions/19681081/how-to-make-error-pop-up-appear-using-keyboard-in-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!