Today I learned how to edit multiple lines in the VS Code code editor.

A GIF animation showing multiple cursors being put in a VS Code editor window and then some changes being typed into all locations at once.

How to edit multiple file locations in VS Code?

Inside VS Code, if you hold Ctrl while clicking different lines with your mouse left button, you will place multiple cursors. Then, you can start typing and those changes will affect all the locations you clicked.

How to edit multiple lines in VS Code?

With this keyboard shortcut, you can hold Ctrl and click the end of multiple lines to edit them all at once.

That's it for now! Stay tuned and I'll see you around!

Become a better Python 🐍 developer 🚀

+35 chapters. +400 pages. Hundreds of examples. Over 30,000 readers!

My book “Pydon'ts” teaches you how to write elegant, expressive, and Pythonic code, to help you become a better developer. Get it below!

Download from

Previous Post Next Post

Blog Comments powered by Disqus.