Hey Devs! ๐
Iโve been using VSCode for a while now, and there are a few shortcuts I just can't live without. These simple key combos have saved me hours of frustration (and kept my fingers from getting too tired ๐ ). Here are my top 5 favorites:
1. CTRL + Left/Right Arrow
This one is a game changer for quickly navigating through words in your code. Instead of holding down the arrow key or awkwardly using the mouse, just press CTRL + Left/Right Arrow to jump word-by-word. Itโs so much faster and makes scrolling through your code feel like a breeze. ๐ฌ๏ธ
2. ALT + Up/Down Arrow
Need to move a block of code up or down without cutting/pasting it everywhere? ALT + Up/Down Arrow lets you shift lines or entire selections of code up or down with just a press of a button. This is super helpful when youโre reordering things or organizing your code. ๐
3. CTRL + X (Cut)
Now, this one is pretty basic, but trust me, itโs one of those shortcuts I constantly use. CTRL + X is my go-to when I need to cut a piece of code and move it around. I donโt just use it for deletions โ I cut and paste code around, re-organize my functions, or even move sections of code between files. ๐ปโ๏ธ
4. CTRL + P
When I need to quickly search for a file, CTRL + P is my best friend. It brings up the quick file search, letting me type part of the file name and jump straight to it in seconds. If youโre working on a project with lots of files, this shortcut is a massive time-saver. ๐โโ๏ธ๐จ
5. CTRL + G
Jumping to a specific line number is so simple with CTRL + G. Just hit it, type the line number, and boom โ youโre right there. Itโs perfect for debugging or when youโre trying to quickly navigate between lines of code you need to reference. ๐
Honorable Mentions โจ
CTRL + SHIFT + F (Search in Files)
This one is a lifesaver when you need to search for something in your entire project. Whether itโs a function, variable, or even a specific word, CTRL + SHIFT + F will search across all your files. Itโs like having Google search inside your codebase. ๐งโ๐ป๐
CTRL + ` (Toggle Terminal)
If you're like me and constantly switching between code and terminal commands, CTRL + ` (the backtick key) will open and close the terminal without breaking your flow. Super useful when you're running scripts, testing stuff, or just need to see the output without losing focus. ๐ฎ๐ฅ๏ธ
If youโre not using these shortcuts already, give them a try โ theyโll seriously save you so much time! โณ
What shortcuts do you swear by in VSCode? Let me know in the comments!๐
Happy coding! ๐
Top comments (1)
The times I've used VSCode I've enabled the Vim keys plugin so I get to do things the way I like :)