n
11

Found a hidden shortcut in VS Code that saved me 20 minutes

Spent an hour last night manually renaming variables one by one until I accidentally hit Ctrl+Shift+L and it highlighted every instance at once. Has anyone else stumbled onto a key combo that completely changed how they code?
2 comments

Log in to join the discussion

Log In
2 Comments
veramiller
veramiller23d ago
Four hours. That's how long I spent once manually clicking through a project to rename a variable called "customerID" to "clientId" because I didn't know "Rename Symbol" existed (F2). I clicked on every single file like a chump, my wrist got all sore. When I finally found that shortcut, I felt about two inches tall and also a genius at the same time. Your mileage may vary, but hitting F2 then typing once might save you from looking like a total rookie like me.
7
coleman.seth
Man oh man, I still find myself doing stuff like that out of habit sometimes even though I know better lol. It's wild how your brain just defaults to the slow way until you hit that breaking point.
7