szymanowski
szymanowski

Reputation: 1379

Sublime Text 2/3 shortcut to show/hide/toggle tabs

I'm searching for a way to toggle tab visibility in Sublime Text 2 or 3. I've seen the 'hide tabs' plugin, but it doesn't fit my needs, and neither does this script (the API seems to have changed since 2010).

I just want to bind a keyboard shortcut to toggle tab visibility.

Upvotes: 5

Views: 5086

Answers (2)

Kos
Kos

Reputation: 72281

Open the console Ctrl+` and type:

sublime.log_commands(True)

Then click View -> Toggle tabs yourself and observe the console:

command: toggle_tabs

You've got the command name. Now go to Preferences -> Key bindings - User. This opens the JSON config file in the User package where you can set your own setting. Add an entry like:

{ "keys": ["ctrl+shift+t"], "command": "toggle_tabs" }

Upvotes: 32

hola
hola

Reputation: 3500

If you are on Mac OS X, you can go to System Preferences > Keyboard > Shortcuts > App Shortcuts, then add a new key binding for the specific menu item.

Upvotes: 2

Related Questions