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?


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


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

  • I want something to close all other tabs. Not all tabs. The same functionality which is available from the context menu on the tab. – Haralan Dobrev Jul 24 '13 at 14:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.