Sunday, January 27, 2013

Sublime text 2 auto format HTML

1. Go to Edit / Line / Reindent
2. Type Alt+E+L+R
     3.A. Go to Preferences / Key Bindings - User (a blank file will open)
     3.B. In that file paste the following piece of code:
      { "keys": ["ctrl+shift+r"], "command": "reindent" , "args": {"single_line":      false}}
     3.C. Save and close that file.

1 comment:

clod said...

Codelobster has better features to format source code.