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??
all in all, it has nothing with pycharm;
in my case there was a global key combo of another program, that masked ctrl-alt-left
I solve it by remapping "file > settings > keymap > main menu > navigate > back".
i chose "alt-left", which intuitively feels likes web browsers' "back" behavior.
Update for year 2016 & 2017:
In PyCharm 2016 & 2017 on windows the correct default is CTRL+SHIFT+BACKSPACE
https://www.jetbrains.com/help/pycharm/2016.2/navigating-to-next-previous-change.html
Be warned that CTRL+ALT+LEFT_ARROW will rotate your entire screen on windows 10. If you're reading this from a horizontal posture, CTRL+ALT+UP will get you back vertical!
On macOS (Sierra; 10.12.6) and PyCharm 2017.3.1 (Professional Edition; built on December 13, 2017), if you're using the Go To -> Declaration (⌘+B), you can jump back and forth using ⌘+⌥+◀ or ▶.
Alt + Shift + left
The above works with pycharm2016.3.2 if you select the keymap "default for GNOME".
I found the solutions doesn't go with mac. But I found that
takes to you location that you were working with.
To further explain, If you have pressed + to navigate to a function, pressing the above combination takes to directly to the call.
Under ArchLinux with PyCharm CE 3.1 works the combination Ctrl + Alt + Left.
This is the way I find out the combination:
Back
in the sectionActions