5

If you right-click a tab name you have three options for closing:

  • Close
  • Close others
  • Close tabs to the right

If you go through the default shortcuts you'd see only the first is possible using the keyboard.

How could you close the other tabs or tabs to the right using the keyboard?

Is there a built-in command which you can bind keys to?

2 Answers 2

0

You can easily do it yourself on windows Preferences - Key bindings default - add this line and test it ;)

[
{ "keys": "alt+w", "command": "close_all" }
]

good luck

2
  • I want something to close all other tabs. Not all tabs. The same functionality which is available from the context menu on the tab. Jul 24, 2013 at 14:49
  • This was more useful to me than "close other tabs"! Sep 3, 2020 at 23:20
0

This question has been asked before and the accepted answer works. I'm using it myself.:

https://stackoverflow.com/questions/15379860/close-others-command-shortcut-in-sublime-text-2

It basically says there isn't a native way for users to set it up on sublime. Users have to create a plugin (Tools/New Plugin) in order to achieve this. Then manually input the keybindings on the Keybindings - User under the Preferences menu.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .