开发者

Intellij: What is the shortcut for going to the next/previous error in the current file?

开发者 https://www.devze.com 2022-12-27 09:07 出处:网络
In Eclipse, if you press CTRL+1, the cursor is set on t开发者_JS百科he 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

In Eclipse, if you press CTRL+1, the cursor is set on t开发者_JS百科he 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.


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.


Besides, you can choose going to next error only (ignore warning) by:

  1. Right click the Validation Side Bar.
  2. On the context menu, choose the Go to high priority problems only

it works for Intellij Idea 12


For intellij 2016:

  1. Go to Settings \ Editor \ General;
  2. Scroll down unil "Error highlighting";
  3. Check "'next Error' action goes to high priority only";
  4. Now F2 only navigate on errors when current file contains errors. If no errors, F2 navigate on warnings;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号