Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In PyCharm, how to go back to last location?

Edit: my system had global key map which had overridden PyCharm. Here's the original question:

I've tried these answers, but nothing happened: Keyboard shortcut for Jump to Previous View Location (Navigate back/forward) in IntelliJ IDEA

For example:

  1. I'm navigating to a function body,
  2. put the cursor on a function call,
  3. click F12 ("go to definition")
  4. 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?

like image 775
Berry Tsakala Avatar asked Aug 03 '14 10:08

Berry Tsakala


People also ask

How do you jump to the end of line in PyCharm?

If you hit the End key on your keyboard in PyCharm, the caret moves to the end of the line.

How do you go to a specific line in PyCharm?

Go to a specific line in a file using the Go to file popup. You can jump to a specific line in a file right from the Go to file popup (Cmd+Shift+O on macOS or Ctrl+Shift+N on Windows and Linux) – just add : after the file name.

What is the shortcut to undo in PyCharm?

If you need to undo or redo your changes, press Ctrl+Z / Ctrl+Shift+Z respectively. To add a line after the current one, press Shift+Enter . PyCharm moves the caret to the next line.

How do I navigate back into my rider?

Press Ctrl+Alt+Shift+N / Ctrl+Alt+Shift+P . From the main menu, choose Navigate | Next / Previous Change.


1 Answers

Under ArchLinux with PyCharm CE 3.1 works the combination Ctrl + Alt + Left.

This is the way I find out the combination:

  1. (Right click) Go To -> Implementation(s)

  2. Double Shift -> Back

    enter image description here

  3. There is an option Back in the section Actions

  4. Ctrl + Shift + A

    enter image description here

  5. And then the cursor comes back

like image 117
awesoon Avatar answered Oct 12 '22 05:10

awesoon