Simple HTML Formatting in Sublime Text

One common questions I've asked and seen asked quite a bit about Sublime Text is how to quickly and easily format HTML while editing.  There isn't a default key binding for this, but if you select all text and then go to:

Edit -> Lines -> Reindent

Want to create your own keybinding?  Go to Preferences, Key Bindings - User and add this line:

{ "keys": ["ctrl+shift+r"], "command": "reindent" , "args": {"single_line": false}}


comments powered by Disqus