I'm used to PHP Storm where you can easily jump back and forwards to where the cursor previously was. Is there such a feature in the atom editor?
3 Answers
I think you are looking for the package "last-cursor-position":
https://atom.io/packages/last-cursor-position
If you want to modify the key binding, click on "view code" for the package and edit the file keymaps\last-cursor-position.cson
Edit: Or better, override keybindings in your keymap.cson
An extra step for those who got used to toolbars in IDEs: to add "back" and "forward" actions to toolbar, I've installed these two packages in addition to last-cursor-position mentioned above:
Then edited the tool bar (there is a gear button on default flex toolbar for this) by adding two buttons that refer to last-cursor-position shortcuts:
{
type: "button"
icon: "arrow-left"
callback: "last-cursor-position:previous"
tooltip: "Back"
}
{
type: "button"
icon: "arrow-right"
callback: "last-cursor-position:next"
tooltip: "Forward"
}
Got this toolbar
1) cursor-history package, will let you jump between your last and current cursor position.
Install package using command apm install cursor-history
or from atom editor.
2) python-tools package, will let you jump to your function/go-to-declaration.
Install package using command apm install python-tools
or from atom editor.
[Tested on: atom 1.45.0, Ubuntu 18.04 LTS, python3]