Tuesday, May 7, 2013

Toggle sidebar in Sublime Text

The more I use Sublime Text the more I like it. 

One thing that is missing (at least in the Linux version) is a shortcut to toggle the side bar.  The Mac version used to use "ctrl+s", but that's what I associate with saving a file.  I added a shortcut for "ctrl+b"; "b" for "bar" :

{ "keys": ["ctrl+b"], "command": "toggle_side_bar" }

To add this choose Preferences -> Key Bindings User

Be sure to add a comma to the line above as well.

4 comments:

Karl Metum said...

Thank you for this. Very helpful!

jeremyrdavis said...

Glad to be of assistance!

Subhojit Paul said...

Thanks for sharing!!

Miguel Grazziotin said...

I use the very same shortcut to toggle sidebar, but I missed the possibility to toggle sidebar and focus it at the same time, then I wrote a new plugin for that, take a look =)
https://github.com/miguelgraz/FocusFileOnSidebar