Jump to last position

javascript
nodejs

#1

I not sure if I have missed this but when I jump to definition (ctrl+click) on a function or variable how can I jump back to where I was ?
I find myself often wanting to see what a function was about and jump to it but then have to try find my way back to where I was. I started using ctrl+Arrow when on a highlighted function/variable name but this is dangerous as I start editing and find it is now in multi rename mode (like ctrl+R).

Thanks


#2

If you use the shortcut jumptodef to jump to definition, which is F3 by default, you can press F3 again to jump back to where you were before. Provided you don’t move the cursor after jumping.


#3

thx that works :slight_smile: