问题
The only way I have found to show the error of an underlined piece of code is to hover it with the mouse.
What is the keyboard shortcut to achieve this? (when the cursor is on the line in error)
回答1:
On Mac that's Command-F1 (in the menu bar it's View -> Error Description). I think that's Control-F1 on Windows.
回答2:
You should try using Alt+Enter key. This will recommend you the available solution for your error.
Also try using Ctrl+F1 it will give you a detailed information for your error.
P.S. these shortcuts are for Windows.
回答3:
F2 is shortcut key to jump on next error line
please note that cursor must be in java file for this to work.
来源:https://stackoverflow.com/questions/43136668/android-studio-keyboard-shortcut-to-show-the-error-on-the-current-line