How to jump to previous and last cursor in Sublime Text 3?

cruelcage picture cruelcage · Nov 15, 2013 · Viewed 47.9k times · Source

How to jump back and forward through the cursor position history in Sublime Text?

I google a lot and find BufferScroll. But it doesn't work for me. I can't find any shortcut or how to use it in the document.

Update:

Every time I try to use Jump Forward (SHIFT+ALT+-), my editor always says "Already at the newest position" while actually not in the newest position. Jump Back (ALT+-) works well.

Answer

Jeremy Halliwell picture Jeremy Halliwell · Nov 15, 2013

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.