editorcustomizationvisual-studio-code

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.


Solution

  • 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