i've tried these answers, but nothing happened:
Keyboard shortcut for Jump to Previous View Location (Navigate back/forward) in IntelliJ Idea
for example:
- i'm navigating to a function body,
- put the cursor on a function call,
- click F12 ("go to definition")
- from the new location (the function's body), how do I return to the function call?
i've tried these, but they didn't do anything:
- ctrl-shift-left
- ctrl-shift-F2 <-- this is my default mapping
- alt-shift-left
- ctrl-shift-backspace
- don't try that on linux: ctrl-alt-backspace
or maybe F12 ("go to def") isn't "strong enough" to trigger a location-change event??
In mac OS X (atleast in El Capitan) it is cmd + [ to go back to the previous location.
Search for
Back
in theSettings
‒>Keymap
, click on it and change it for what you want ‒ should help on all systems.I use Ubuntu so the default was Ctrl + Alt + Left, but this combination is already in use by the system.
In Ubuntu Ctrl+Altr+Left is overridden in for switching to left workspace. I don't use workspaces at all so I cancelled that shortcut in System Settings -> Keyboard -> Shortcuts -> Navigation -> Switch to workspace left.