Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 981
Aaron Avatar asked Apr 20 '10 21:04

Aaron


People also ask

How do I go back to a previous save in IntelliJ?

With IntelliJ IDEA you can restore that change in a couple of clicks. Right-click anywhere in the editor and choose Local History | Show History from the context menu. In the dialog that opens, the left-hand pane shows a list of all saved revisions of the current file with timestamps.

What is Ctrl Shift O in IntelliJ?

In Eclipse, you press CTRL + SHIFT + O “Organize Imports” to import packages automatically. For IntelliJ IDEA, if you press CTRL + ALT + O “Optimize Imports”, it just removes some unused imports, never imports any package.

What is Ctrl h in IntelliJ?

Ctrl + H = "Type Hierarchy" view = shows a tree of parent and child classes of this class. Ctrl + Shift + A = "It does a search as you type through all the commands in intellij. Not only that but when you find the command you want it also displays the corresponding shortcut key next to it!"

What does Ctrl Shift F do in IntelliJ?

Select any text in the editor. Press Ctrl+Shift+F to search for this text in all files. "Find in path" popup dialog window opens with search results. In upper part of the window there is list of files where text was found, in lower part of the window there is preview of found text in selected file.


2 Answers

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.

like image 108
bealex Avatar answered Sep 20 '22 17:09

bealex


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

like image 34
xtang Avatar answered Sep 20 '22 17:09

xtang