6 ms·
Anyone know a way to auto-indent lines when working with HTML/Javascript? I feel the "Select text - Reindent" process is cumbersome
by blahbap 13y ago
Anyone know a way to auto-indent lines when working with HTML/Javascript? I feel the "Select text - Reindent" process is cumbersome
- Raphmedia 13y agoSimply open the command pallet with the shortcut and press "re" then enter. (At least, in Sublime Text 2)
- filip01 13y agoPut this in your user key bindings and then you can auto-indent with cmd+shift+g: { "keys": ["command+shift+g"], "command": "reindent", "args": {"single_line": false}}
- blahbap 13y agoAh, lovely, thanks! Note, just replace "command" with "ctrl" for Windows
- danielsamuels 13y agoI think you can use 'super' for cross platform compatibility.