DEV Community

Hrn Svncハルン
Hrn Svncハルン

Posted on

Visual Studio Code Lifehack that saved me a ton of time!

Do you know that situation when you have a huge file with a lot of lines in vs code and you jump from one line to another and lose your orientation where you where last?

Don't worry, i got you!

By simply pressing

Alt + ⬅️ on Windows or
control + "-" (minus letter) on Mac
you will navigate to the last courser position.

Thanks and i hope i could save you some time =)

If you likes this post you may will like some of my other posts too, like that one chrome extension you didn't know of. 🧑‍💻 ✅
Or just follow me onTwitter 📢 ✅

Top comments (4)

Collapse
 
jacmkno profile image
jacmkno

When I have to review other parts of the code, I just mark the position where I'm coding with a small change, and to go back there i just use ctrl+z...

Collapse
 
neil_crow profile image
Neil Crow

You need to check out the numbered bookmarks extension, do yourself a favour and go search for it

Collapse
 
eshwinrio profile image
Rio

It's a lot more easier to me with a gaming mouse. Mouse buttons 4 & 5 feels more convenient to me 😉

Collapse
 
harsvnc profile image
Hrn Svncハルン • Edited

Since I dont have that many buttons on my mouse, I need to use this little life hack of mine 😄