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}}
Enjoy!

Originally published on 2013-02-27 in Development

Enjoy this article? Let's keep in touch

I really appreciate you taking the time out of your schedule to read this post. I like to keep my friends updated on new articles and also spawn discussions here and there.

If you'd like to keep in touch, please subscribe below. And I promise, no more than 1 email per week (if even that).