Maximize Your Efficiency in Visual Studio Code with These Productive Shortcuts.
Table of contents
- Shrink a selection
- Expand a selection
- Duplicate the current line
- Multiple vertical cursors
- Move the line up and down
- Fold a block of code
- UnFold a block of code
- Toggle Terminal
- Jump to the start or end of the line
- Select the whole line
- Open command pallets
- Focus File window
- Change the file tab
- Select all occurrences
- Search and Replace in all open files
- Close an open file
- Open files without the sidebar
- The end
With these productivity-boosting shortcuts, you can unleash the full power of Visual Studio Code. Whether you're a seasoned developer or just getting started, these VSCode tips will help you work faster and more efficiently. These shortcuts will streamline your workflow and help you get more done in less time, from navigating the editor to managing your code. With this guide, you'll be able to work in VSCode smarter, not harder.
Let's dive into them.
Shrink a selection
Shift + Control + left arrow
Expand a selection
Shift + Control + right arrow
Duplicate the current line
Command + D
Multiple vertical cursors
Options + Command + Shift + Arrow down or Arrow up
Move the line up and down
Options + Shift + Arrow down or Arrow up
Fold a block of code
Options + Command + [
UnFold a block of code
Options + Command + ]
Toggle Terminal
Command + J
Jump to the start or end of the line
Command + arrow right or arrow left
Select the whole line
Shift + Command and arrow right or left
Open command pallets
Control + Shift + P
Focus File window
Command + Shift + E
Change the file tab
Control + Tab
Select all occurrences
Command + Control + G
Search and Replace in all open files
Command + Shift + H
Close an open file
Command + W
Open files without the sidebar
Command + P
Type part of the name of the file in the search.
Press Enter to open it.
Are many filenames returned? Don't panic.
Use the keyboard up and down arrow keys to select a desired file. Press Enter to open it.
The end
Did you like the shortcuts?
Follow @davidofug for more free content like this.
Subscribe to my newsletter
Read articles from David Wampamba directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
David Wampamba
David Wampamba
My journey as a self-taught developer began with a burning curiosity. Growing up in Uganda, where resources were scarce, I couldn't afford a formal education. Instead, I relied on handwritten notes from friends and online tutorials. As time went on, I got good at building websites for local businesses, each project proving my self-taught skills. But my dream of joining a major tech company seemed unreachable. Rejections piled up, all due to my academic background and self-doubt crept in. Then, a turning point. A friend I had shared my knowledge with landed a job at a promising startup in Kampala. He believed in me and recommended me. For five years now, I've been working remotely for that very company. They saw the potential in passionate, self-taught talent. But my heart is saddened by the millions in Uganda and the world facing the same challenges. That's why I am sharing my knowledge on this platform and other social platforms. My expertise is in PHP, JavaScript, WordPress, Technical Writing and business leadership. If you want to learn from me or collaborate, consider to follow or send me a on X.com/davidofug