The VS Code Editor shows the content of files and allows you to edit them. It has a tabbed view such that multiple files can be opened simultaneously. The active file is the one currently selected. VS Code offers many basic editing features out of the box.
Multi-cursor support
VS Code supports multiple cursors for simultaneous edits. Cursors can be added using Alt+Click
.
If you prefer using Ctrl+Click, open the Command Palette via Ctrl+Shift+P
, type multi, and select Toggle Multi-Cursor Modifier from the list to quickly toggle the modifier. It can also be changed via the
setting.
Add parentheses or create a string
Selecting a region and pressing ( or [ will enclose the selected region with the matching closing parenthesis, ) or ].
This works for both regular and multi-line strings and also with either single (') or double (") quotation marks.
You can configure this feature with the
setting.
Split editor
The VS Code editor can be split into independent viewports that access the same file buffer, i.e., you’re viewing and editing the same file using two different viewports. To split the editor, go to and select the desired action. The editor can be split horizontally and vertically as often as you want.
Side-by-side comparison
Wondering what modifications you made to a file or how it differs from another file? Compare it side by side.
A file can be compared to a previously saved version or one checked into version control. Open the
Explorer view
and open the Timeline pane. Selecting an item will show the side-by-side comparison to the previous version.
You can also compare the content of two files by Ctrl+Clicking
the editor tabs you want to compare. Then, right-click one of the tabs, and press Compare Selected.


