-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
With the introduction of tabs and editor stacks to VS Code, we introduced many new commands and changed some existing ones. Due to the fact that the Working Files view is replaced by the Opened Editors view, some commands also got replaced by others. Below is a list of changed and new commands:
Changed Commands
workbench.action.focusFirstEditor=>workbench.action.focusFirstEditorGroupworkbench.action.focusSecondEditor=>workbench.action.focusSecondEditorGroupworkbench.action.focusThirdEditor=>workbench.action.focusThirdEditorGroupworkbench.action.focusLeftEditor=>workbench.action.focusPreviousGroupworkbench.action.focusRightEditor=>workbench.action.focusNextGroupworkbench.action.moveActiveEditorLeft=>workbench.action.moveActiveEditorGroupLeftworkbench.action.moveActiveEditorRight=>workbench.action.moveActiveEditorGroupRightworkbench.action.openPreviousEditor=>workbench.action.openPreviousEditorFromHistoryworkbench.files.action.addToWorkingFiles=>workbench.action.keepEditorworkbench.files.action.closeAllFiles=>workbench.action.closeAllEditorsworkbench.files.action.closeFile=>workbench.action.closeActiveEditorworkbench.files.action.closeOtherFiles=>workbench.action.closeOtherEditorsworkbench.files.action.focusWorkingFiles=>workbench.files.action.focusOpenEditorsViewworkbench.files.action.openNextWorkingFile=>workbench.action.nextEditorworkbench.files.action.openPreviousWorkingFile=>workbench.action.previousEditorworkbench.files.action.reopenClosedFile=>workbench.action.reopenClosedEditorworkbench.files.action.workingFilesPicker=>workbench.action.showAllEditorsworkbench.action.cycleEditor=>workbench.action.navigateEditorGroups
New Commands
workbench.action.showEditorsInGroup: show all editors of a groupworkbench.action.clearEditorHistory: clear navigation history and list of recently closed editorsworkbench.action.closeEditorsInGroup: close all editors of a groupworkbench.action.closeEditorsInOtherGroups: close editors in other groupsworkbench.action.closeEditorsToTheLeft: close editors to the left of the active oneworkbench.action.closeEditorsToTheRight: close editors to the right of the active oneworkbench.action.openLastEditorInGroup: open last editor in groupworkbench.action.openEditorAtIndex[1-9]: open editor at indexworkbench.action.openNextRecentlyUsedEditorInGroup: navigate forwards in MRU list of editors of a groupworkbench.action.openPreviousRecentlyUsedEditorInGroup: navigate backwards in MRU list of editors of a group
Settings for old non-stacks behaviour
If you want to configure VS Code to get some of the old behaviour back, see the following configurations.
Ctrl+Tab to navigate in entire editor history
You can change keybindings for Ctrl+Tab to show you a list of all opened editors from the history independent from the editors that are opened in a stack. Edit your keybindings and add the following:
{ "key": "ctrl+tab", "command": "workbench.action.openPreviousEditorFromHistory" },
{ "key": "ctrl+tab", "command": "workbench.action.quickOpenNavigateNext", "when": "inQuickOpen" },Close an entire group instead of a single editor
If you liked the behaviour of VS Code closing an entire group when closing one editor, you can bind the following in your keybindings configuration:
Mac
{ "key": "cmd+w", "command": "workbench.action.closeEditorsInGroup" }Windows/Linux
{ "key": "ctrl+w", "command": "workbench.action.closeEditorsInGroup" }