DEV Community

Cover image for Top 5 VSCode Shortcuts That Save Me Tons of Time! ๐Ÿš€
Gentt
Gentt

Posted on

Top 5 VSCode Shortcuts That Save Me Tons of Time! ๐Ÿš€

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)

Collapse
 
moopet profile image
Ben Sinclair

The times I've used VSCode I've enabled the Vim keys plugin so I get to do things the way I like :)