VSCode: Prevent split editor to open same file lef

2019-03-19 04:55发布

问题:

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).

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.

回答1:

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+