In Visual Studio Code, you can have up to three editors open side by side for editing. There are multiple ways to open the editors side by side when you already have one editor open. The following instructions show you how:
- cmd + \ (macOS) or Ctrl + \ to split the active editor into two
- cmd (macOS) or Ctrl click on a file in the Explorer
- From the Explorer context menu on a file—Open to the Side
- On the upper-right of an editor, click the Split Editor
- Drag and drop a file to the other side of the editor region
- cmd + Enter (macOS) or Ctrl+Enter in the Quick Open (cmd + P) file list
Visual Studio Code side- by-side editing ...