VSCODE Keyboard Shortcuts To Code Faster!

Miles
4 min readDec 21, 2023
Photo by Riku Lu on Unsplash

In the fast-paced world of software development, every second counts. Developers are constantly on the lookout for tools and techniques that can streamline their workflow and boost productivity.

If you’re a Visual Studio Code user, mastering keyboard shortcuts is a game-changer. In this blog post, we’ll delve into a curated list of essential Visual Studio Code shortcuts that can significantly speed up your development process.

Navigating with Precision

  • Quick Open with Ctrl + P

Quick Open is your shortcut to swiftly finding and opening files in your project. Press Ctrl + P, start typing the file name, and let Visual Studio Code intelligently suggest and navigate to your desired file.

  • Switch Files Seamlessly with Ctrl + Tab

Effortlessly toggle between open files usingCtrl + Tab then letting go.This shortcut helps you maintain a smooth workflow by quickly switching focus between different tabs, eliminating the need for mouse-driven navigation.

  • Efficient Line Navigation with Ctrl + G

Navigate to a specific line in a file using the “Go to Line” feature with Ctrl + G. This command opens a dialog where you can enter the line number, allowing you to jump directly to the desired location in your code.

Supercharge Your Editing

  • Trigger Suggestions with Ctrl + Space

Boost your coding speed with intelligent code suggestions. Press Ctrl + Space to trigger autocompletions and suggestions based on your current context, reducing the need to type out entire lines of code manually.

  • Streamline Commenting with Ctrl + /

Efficiently comment or uncomment lines of code with Ctrl + /. This shortcut makes it easy to add or remove comments, helping you document your code and test different sections without manual commenting.

  • Move and Copy Lines with Alt + ↑/↓ and Shift + Alt + ↑/↓

Reorganize your code effortlessly. Move lines up or down using Alt + ↑/↓ and duplicate lines with Shift + Alt + ↑/↓. These shortcuts are invaluable for maintaining code structure and quickly replicating code segments.

Time-Saving Editing Techniques

By far my favorite ones

  • Multi-Cursor Magic with Alt + Click

Become a multi-cursor expert using Alt + Click. Add cursors at multiple locations in your code simultaneously, enabling you to edit and make changes in parallel across different sections of your files.

  • Format Code with Shift + Alt + F

Maintain a consistent code style effortlessly with Shift + Alt + F. This command triggers the code formatting feature, automatically adjusting indentation, spacing, and other style elements to keep your codebase clean and visually appealing.

  • Undo last change ctrl + Z

Accidentally deleted a line of code? Use ctrl + Z to undo your last change. Never have to rewrite another line of code because of a mistake.

Hopefully you all enjoyed! Follow my socials here!

--

--

Miles

A software developer and stock/crypto trader that makes it look easy. Follow for market insights and news.