In Eclipse, if you press CTRL+1, the cursor is set on the first error and there the IDE presents you some solutions. In IDEA, you press ALT+ENTER for some solutions, but I don't know how to make the cursor to go to the error.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
F2 can be used to navigate through all errors/warnings in current file in circle.
After compilation: Ctrl+Alt+Arrow Up/Down can be used to navigate through any results: search results/compilation results.
回答2:
Besides, you can choose going to next error only (ignore warning) by:
- Right click the Validation Side Bar.
- On the context menu, choose the
Go to high priority problems only
it works for Intellij Idea 12
回答3:
For intellij 2016:
- Go to Settings \ Editor \ General;
- Scroll down unil "Error highlighting";
- Check "'next Error' action goes to high priority only";
- Now F2 only navigate on errors when current file contains errors. If no errors, F2 navigate on warnings;