Visual Studio Code – Edit Multiple Lines

Visual Studio Code is a free and awesome editor from Microsoft for Mac, Windows and Linux. I recently discovered that you can select multiple lines at the same time. I was missing this coming from vi/vim.

  • macOS: Opt + Cmd + ↑ or ↓
  • Windows: Ctrl + Alt + ↑ or ↓
  • Linux: Shift + Alt + ↑ or ↓
To quit this function press Esc. Here are the official links for a complete list of shortcuts:

Update: Visual Studio Code has been ported to FreeBSD, the shortcuts should work there as well

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.