close-tabs

Add more tabs closing options in the context menu

MIT License

Stars
4
Committers
2

Close Tabs - Unchanged, Diff, Left and more!

More options to close open tabs, fully configurable.

Features

Add the following options to the tab context menu:

  • Close all open tabs without changes (from the git working tree).
  • Close all Diff Editors (Working Tree tabs).
  • Close all tabs to the left.
  • Fine-grained settings to toggle which buttons are shown in the tab context menu.
  • Enable/disable the extension for pinned tabs via settings.

Extension Settings

"closeTabs.allowClosePinnedTabs": {
    "type": "boolean",
    "default": false,
    "description": "Allow closing pinned tabs."
},
"closeTabs.showCloseUnchanged": {
    "type": "boolean",
    "default": true,
    "description": "Show the \"Close Unchanged\" button."
},
"closeTabs.showCloseDiffEditors": {
    "type": "boolean",
    "default": true,
    "description": "Show the \"Close Diff Editors\" button."
},
"closeTabs.showCloseToTheLeft": {
    "type": "boolean",
    "default": true,
    "description": "Show the \"Close to the Left\" button."
}

Coming soon:

  • Suggest/Request your feature by opening an issue!

Release Notes

1.1.4

  • Fixed "Close Unchanged" in projects with multiple repositories.

1.1.3

  • Temporary fix for Close Left (only works from the active tab until a better solution is found.)

1.1.2

  • Enable/disable the extension for pinned tabs via settings.

1.1.1

  • Add empty activationEvents to fix a warning in the marketplace since vscode 1.77.

1.1.0

  • Add settings to toggle which buttons are shown in the tab context menu.
  • Add icon to the extension! :)

1.0.0

It does what the initial plan was about!

Add the following options to the tab context menu:

  • Close all open tabs without changes (from the git working tree).
  • Close all Diff Editors (Working Tree tabs).
  • Close all tabs to the left.

0.0.1

Just trying to make it work, somehow.