If you changed your selection and want to have the previous selection you can press ctrl+u. If you changed the content and want to revert that you can press ctrl+z (as in nearly every other editor).
In Sublime Text, you can quickly jump to any line in the code. Hit Ctrl–G (Mac and Windows). Type in a line number and hit Return/Enter to go to that line.
The shortcut key for this purpose is Ctrl+Shift+P for Windows and Cmd+Shift+P for Mac.
If you mean jumping back and forward through the cursor position history, then in Sublime Text 3 it's built in via the GoTo menu or keyboard shortcuts:
Jump Back and Jump Forward – Jump Back allows you to go to previous editing positions. This goes hand in hand with Goto Definition: you can now inspect a symbol definition, and quickly jump back to where you were previously. Jump Back is bound to Alt+Minus by default. The menu entry is Goto > Jump Back
There are plugins available for ST2, for example navigationHistory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With