Android Studio: keyboard shortcut to show the error on the current line?

徘徊边缘 提交于 2020-05-14 07:19:13

问题


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

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