Maximize Your Efficiency in Visual Studio Code with These Productive Shortcuts.

David WampambaDavid Wampamba
2 min read

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.

  1. Shrink a selection

Shift + Control + left arrow

  1. Expand a selection

Shift + Control + right arrow

  1. Duplicate the current line

Command + D

  1. Multiple vertical cursors

Options + Command + Shift + Arrow down or Arrow up

  1. Move the line up and down

Options + Shift + Arrow down or Arrow up

  1. Fold a block of code

Options + Command + [

  1. UnFold a block of code

Options + Command + ]

  1. Toggle Terminal

Command + J

  1. Jump to the start or end of the line

Command + arrow right or arrow left

  1. Select the whole line

Shift + Command and arrow right or left

  1. Open command pallets

Control + Shift + P

  1. Focus File window

Command + Shift + E

  1. Change the file tab

Control + Tab

  1. Select all occurrences

Command + Control + G

  1. Search and Replace in all open files

Command + Shift + H

  1. Close an open file

Command + W

  1. 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.

7
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