Skip to content

Stacks & Tabs: Added or changed commands #6605

@bpasero

Description

@bpasero

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.focusFirstEditorGroup
  • workbench.action.focusSecondEditor => workbench.action.focusSecondEditorGroup
  • workbench.action.focusThirdEditor => workbench.action.focusThirdEditorGroup
  • workbench.action.focusLeftEditor => workbench.action.focusPreviousGroup
  • workbench.action.focusRightEditor => workbench.action.focusNextGroup
  • workbench.action.moveActiveEditorLeft => workbench.action.moveActiveEditorGroupLeft
  • workbench.action.moveActiveEditorRight => workbench.action.moveActiveEditorGroupRight
  • workbench.action.openPreviousEditor => workbench.action.openPreviousEditorFromHistory
  • workbench.files.action.addToWorkingFiles => workbench.action.keepEditor
  • workbench.files.action.closeAllFiles => workbench.action.closeAllEditors
  • workbench.files.action.closeFile => workbench.action.closeActiveEditor
  • workbench.files.action.closeOtherFiles => workbench.action.closeOtherEditors
  • workbench.files.action.focusWorkingFiles => workbench.files.action.focusOpenEditorsView
  • workbench.files.action.openNextWorkingFile => workbench.action.nextEditor
  • workbench.files.action.openPreviousWorkingFile => workbench.action.previousEditor
  • workbench.files.action.reopenClosedFile => workbench.action.reopenClosedEditor
  • workbench.files.action.workingFilesPicker => workbench.action.showAllEditors
  • workbench.action.cycleEditor => workbench.action.navigateEditorGroups

New Commands

  • workbench.action.showEditorsInGroup: show all editors of a group
  • workbench.action.clearEditorHistory: clear navigation history and list of recently closed editors
  • workbench.action.closeEditorsInGroup: close all editors of a group
  • workbench.action.closeEditorsInOtherGroups: close editors in other groups
  • workbench.action.closeEditorsToTheLeft: close editors to the left of the active one
  • workbench.action.closeEditorsToTheRight: close editors to the right of the active one
  • workbench.action.openLastEditorInGroup: open last editor in group
  • workbench.action.openEditorAtIndex[1-9]: open editor at index
  • workbench.action.openNextRecentlyUsedEditorInGroup: navigate forwards in MRU list of editors of a group
  • workbench.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" }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions