This extension wraps prettydiff/esformatter to format your javascript, JSX, typescript, TSX file.
If this extension found a locally installed prettydiff/esformatter, this extension uses that instead of bundled module.
It is strongly recommended that you install formatter implementation locally.
- open Context Menu and choose
Format Code
onjavascript
/javascriptreact
/typescript
/typescriptreact
- shortcuts: Alt+Shift+F
- Press F1, enter
react.beautify
This extension contributes the following settings:
react.beautify.onSave
: by default isfalse
. if you settrue
, Automatically format files on save.react.beautify.formatter
: select the formatter implementation. Accepted values areprettydiff
andesformatter
. default value isprettydiff
.react.beautify.configFilePath
: Specifies the workspace relative config filepath. default value is.jsbeautifyrc
.- Comments in your settings file are acceptable (they're removed before the file is parsed).
- Adopt formatOnSave changes
- thanks for @jrieken !!
- add typescript support
- add javascript support
- initial release