More posts on Sublime 2:
- How to Setup Sublime 2 Text Editor
- Sublime2 vs Notepad++
- Mapping a new tab command in Sublime 2 Text
Select your code and the execute the command
Full instructions below.
- Download the sublime format plugin from GitHub.
- Type %appdata% in cmd (start>run) and extract the folder renamed to “JsFormat“.
- Reload Sublime 2
- Press CTRL+SHIFT+P (or Tools>Command Pallet) and select Format as the command.