问题
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
在Android Studio中,查看代码错误的快捷方式通常包括使用Command-F1(Mac)或Control-F1(Windows)。此外,Alt+Enter可以提供错误的解决方案建议,而Ctrl+F1会显示详细的错误信息。

被折叠的 条评论
为什么被折叠?



