This extension wraps js-beautify to format your JS, CSS, HTML, JSON file.
Context Menu
and choose Format Code
Alt+Shift+F
F1
, enter Format Code
the upper 3 ways don't work for
Javascript
&JSON
aftervscode v0.10.10
, but you can still formatCSS
andHTML
.
F1
,enter Formatter
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.
Restart
vscode [!Important]
onSave
feature.Try to fix the Save loop
problem.Issue #20SCSS support
Issue #14formatter.json
file Issue #9New Feature: on save
.Issue #4
Add a new field in config file onSave
(default true);
New Feature: local config file
. Issue#3
Use F1-> Formatter Create Local Config
to generate the local config file in .vscode folder
of your project. Formatter will use the local config file first.
Support JSON
file.
rjmacarthy, zhaopengme, Arrow7000, bitwiseman