Skip to end of metadata
Go to start of metadata

Redirection Notice



Navigation means how fast you switch between the pieces of code you are working on. The faster you switch the more productive you are. Here is a list of notable features which make your navigation experience smooth.

Most of the time you work with a finite set of files. It means you have to switch between them quickly all the time. The real time-saver here is action called Recent files viaCtrl+E(Cmd+Efor Mac). By default the focus is on the last accessed file. In the meanwhile you can open any tool window through this action.

Another useful feature similar to Recent files is Recently edited files, available viaShift+Ctrl+E(Shift+Cmd+Efor Mac). This is the easiest way to get back to the code you are working on.

When you are not switching between files you probably navigate within a file. The shortest way to do it is to pressCtrl+F12(Cmd+F12for Mac). The popup shows you the structure of file and allows you quickly navigate to any item. Just as always you don’t need to touch mouse.

Note that the speed search works here as well. The second press of the shortcut displays inherited members.

Just like the task switcher in an operating system IntelliJ IDEA provides a switcher between opened files and tool windows. The action is available via Ctrl+Tab.

Another useful feature worth to mention is Jump to navigation bar viaAlt+Home(Alt+for Mac). The navigation bar in the top of the window is useless most of the time. That’s why developers usually hide it and call on demand via a shortcut.

The navigation bar supports the speed search and other actions, such as code generations, documentation popup, etc.

If you need to jump over the methods quickly just pressAlt+↑↓(Ctrl+↑↓for Mac).

A similar action for navigating between braces is available viaCtrl+{andCtrl+}(Cmd+{andCmd+}for Mac).

The next feature which practically one of the most used in IntelliJ IDEA is Navigate to Class, File and Symbol.

This feature is available viaCtrl+N(Cmd+Nfor Mac) supports sophisticated expressions, including camel humps, path, line navigate to, middle name matching and many more. If you call it twice it shows you the results out of the project classes.

Just like for classes it works for files as well, viaCtrl+Shift+N(Cmd+Shift+Nfor Mac). The results are sorted by the relevance to the expression.

And finally the most tricky feature is to navigate to a symbol viaCtrl+Alt+Shift+N(Alt+Cmd+Shift+Nfor Mac). The IDE constantly maintains the index of all symbols in the project (and within libraries as well) for quick resolve and navigation. So you can type an expression and find a method or a field you need in a second.

And finally if you need to open the file in a particular tool window (or Finder/Explorer) you can do it via Select In action by pressingAlt+F1.

  • Navigate to line number viaCtrl+G(Cmd+Gfor Mac)

  • Related files via Gutter
  • Navigate to declaration viaCtrl+B(Cmd+Bfor Mac)

  • Navigate to super viaCtrl+U(Cmd+Ufor Mac)

  • Navigate to implementations viaCtrl+Alt+B(Alt+Cmd+Bfor Mac)

  • Navigate to the last edit location viaShift+Ctrl+Backspace(Shift+Cmd+Backspacefor Mac)

  • Navigate to the next error or warning viaF2

  • Navigate to a related unit test viaShift + Ctrl+T(Shift+Cmd+Tfor Mac)

  • No labels