This extension wraps js-beautify to format your Scarpet Script.
This project is modifying based on "Lonefy/vscode-JS-CSS-HTML-formatter" under MIT license, new code of this project is under gpl-v3 license
How To Use
open Context Menu and choose Format Code
shortcuts: Alt+Shift+F
CLI: Press F1, enter Format Code
the upper 3 ways don't work for Javascript&JSON after vscode v0.10.10, but you can still format CSS and HTML.
To format Javascript,CSS and HTML after vscode v0.10.10
CLI: Press F1,enter Formatter
Config
Press F1, enter Formatter Config, open the config file:
Edit the file as your needs. This extension uses js-beautify internally, so you can edit the parameters which js-beautify can use.