Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode: Prevent split editor to open same file left & right

I'm currently using VSCode as my main editor, however, when I split the editor into 2, it opens the same file twice, like left & right (see image below).

enter image description here Is there any way to prevent it from opening the same file on the next editor? Currently, I have my custom settings and can be copied from here.

like image 926
Neo Genesis Avatar asked Apr 09 '17 08:04

Neo Genesis


People also ask

How do you unsplit editor in VS Code?

From the Window menu, select Remove Split.

How do I open two files side by side in VS Code?

Side by side editing# Ctrl+\ to split the active editor into two. Open to the Side (Ctrl+Enter) from the Explorer context menu on a file. Click the Split Editor button in the upper right of an editor. Drag and drop a file to any side of the editor region.


1 Answers

command name in Keybindings: workbench.action.moveEditorToNextGroup

command name in Command Palette: View: Move Editor into Next Group

default keybinding: Ctrl+Alt+


command name in Keybindings:workbench.action.moveEditorToPreviousGroup

command name in Command Palette: View: Move Editor into Previous Group

default keybinding: Ctrl+Alt+

enter image description here

like image 75
Alex Avatar answered Oct 21 '22 12:10

Alex