Lonefy / vscode-JS-CSS-HTML-formatter

JS,CSS,HTML formatter for vscode
48 stars 23 forks source link

VS Code JS, CSS, HTML Formatting

This extension wraps js-beautify to format your JS, CSS, HTML, JSON file.

How To Use

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

Config

  1. Press F1, enter Formatter Config, open the config file:

    image

  2. Edit the file as your needs. This extension uses js-beautify internally, so you can edit the parameters which js-beautify can use.

    image

  3. Restart vscode [!Important]

License

MIT

Bug and Issue

Issue

Changes Log:

0.2.3 31 Mar 2017

0.2.2 23 Nov 2016

0.2.0 20 July 2016

0.1.32 15 July 2016

0.1.3 06 May 2016

0.1.0 26 Mar 2016

THANKS:

rjmacarthy, zhaopengme, Arrow7000, bitwiseman