[英]Eclipse keyboard shortcut for error
將光標移到帶有紅色下划線的文本上,然后在我的Eclipse中,錯誤消息也會顯示在狀態欄中(窗口的左下角)。 它並不總是與鼠標懸停彈出窗口中給出的文本完全相同,但通常足夠接近以找出問題所在。 使用Cmd / Ctrl +轉到錯誤。 應該將光標放在正確的位置以在狀態欄中顯示錯誤消息。
Windows和Linux
Go to the next error: Ctrl + .
Go to the previous error: Ctrl + ,
Show quick fixes: Ctrl + 1
Mac
Go to the next error: Cmd + .
Go to the previous error: Cmd + ,
Show quick fixes: Cmd + 1
Go to the next error: Ctrl + .
Go to the previous error: Ctrl + ,
Show quick fixes: Ctrl + 1
Show suggestions and quick fixes: F2
因此, F2會使用氣泡的目的,該氣泡可顯示建議,並在同一行上單擊快速修復多個錯誤。 使用F2,只需傳播每個錯誤即可。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.