How to go to a error using only the keyboard in Eclipse?

a 夏天 提交于 2019-11-27 04:57:22

问题


Let's say I have a file with 10 lines and I have problem with the name of the package (or something) and the cursor is on the last line of the text.

How can I go directly to that line to see what is the problem and what are suggestions to remove the problem, using a shortcut?

Question: Is there a keyboard-shortcut for this?

Or something like this:

Go to the next error and Go to the previous error.


回答1:


Windows and 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



回答2:


To go to problem within project just type Shift+Alt+Q then press X. It will open the "Problems" window. Now use or to select the error/warning and press Enter to go to it.

I know it isn't simple as Crtl+. but it works for a whole project.




回答3:


To complete the previous answers, you can use the combobox linked to the toolbar buttons for next/previous annotation to set the annotation level. That makes browsing through errors using ctrl+./ ctrl+ easier,




回答4:


TO GO TO NEXT ERROR ONLY in eclipse with Ctrl + . command, tick off warnings as shown in screenshot



来源:https://stackoverflow.com/questions/1832183/how-to-go-to-a-error-using-only-the-keyboard-in-eclipse

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