简体   繁体   中英

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

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)

On Mac that's Command-F1 (in the menu bar it's View -> Error Description). I think that's Control-F1 on Windows.

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.

PS these shortcuts are for Windows.

F2是跳转到下一个错误行的快捷键,请注意,光标必须在Java文件中才能起作用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM