Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut for Jump to Previous View Location (Navigate back/forward) in IntelliJ IDEA

I know Ctrl+Shift+Backspace is used to go to the location of the last edit.

But I want to jump to whichever location I was most recently at, not necessarily one where I edited anything.

For example, if I jumped to a declaration using Ctrl+B, then I want to go back to where I was before jumping.

like image 920
AnkurVj Avatar asked Sep 16 '11 07:09

AnkurVj


People also ask

How do I go back to previous position in IntelliJ?

To navigate backwards, press Ctrl+Alt+Left . To navigate forward, press Ctrl+Alt+Right . To navigate to the last edited location, press Ctrl+Shift+Backspace .

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?

In past IntelliJ versions, ctrl+shift+f would search the entire project (no matter whether you had at some point used "find in path").


2 Answers

Alt + Shift + ← (Left Arrow)

or

Ctrl + E (Recent Files pop-up).

Also check:

Ctrl + Shift + E (the Recently Edited Files pop-up).

Mac users, replace Ctrl with ⌘ (command) and Alt with ⌥ (option).

Update In v12.0 it's Alt + Shift +← (Left Arrow) instead of Alt + Ctrl + ← (Left Arrow).

Update 2 In v14.1 (and possibly earlier) it's Ctrl + [

Update 3 In IntelliJ IDEA 2016.3 it's Ctrl + Alt + ← (Left Arrow)

Update 4 In IntelliJ IDEA 2018.3 it's Alt + Shift + ← (Left Arrow)

Update 5 In IntelliJ IDEA 2019.3 it's Ctrl + Alt + ← (Left Arrow)

like image 122
Tomasz Nurkiewicz Avatar answered Sep 21 '22 06:09

Tomasz Nurkiewicz


The underlying problem is Ctrl+Alt+Left and Right are used by window managers to switch workspace and/or OEM utilities to change the screen orientation.

You can change the assignments using File / Settings / Keymap then Main Menu / Navigate find Back and Forward and right click to Add Keyboard Shortcut to set an alternative key chord.

Alt Graph+Left and Alt Graph+Right works well for me (IDEA 13.1.4 on Ubuntu under IceWM).

like image 27
Steve Pitchers Avatar answered Sep 23 '22 06:09

Steve Pitchers