CodeSource code example

How to select multiple lines in VS code


In this article, you will learn about how to select multiple lines in VS code.

Visual Studio Code is a powerful source code editor which is developed by Microsoft. It is a cross-platform desktop app that can be run on Windows, Mac or, Linux. VS code comes with lots of functionalities that let you write your source code easier way. Select multiple lines in VS Code is one of them.

In VS Code you can select multiple lines once at a time. Suppose you have done the same mistakes in your code 5 times in 5 multiple lines. In VS Code you can easily select multiple lines and solve them at a single time. Let me show how you can select multiple lines in vs code for desktop, mac, and Linux.

  • For Desktop : Ctrl + Alt + Arrow Keys (Up/Down)
  • For Mac : Opt + Cmd + Arrow Keys (Up/Down)
  • For Linux: Shift + Alt + Arrow Keys (Up/Down)

By using the above command you simply select multiple lines and you can make changes at once for these lines.

This is all about selecting multiple lines in Vs Code and you can get an overview from it.


Share on social media

//