Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taichi/react-beautify
https://github.com/taichi/react-beautify
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/taichi/react-beautify
- Owner: taichi
- Created: 2016-09-19T19:12:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-26T16:46:19.000Z (about 8 years ago)
- Last Synced: 2024-10-13T01:41:46.196Z (3 months ago)
- Language: TypeScript
- Size: 19.5 KB
- Stars: 14
- Watchers: 3
- Forks: 5
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-beautify
This extension wraps prettydiff/esformatter to format your javascript, JSX, typescript, TSX file.
### Local Version
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.
## How To Use
* open Context Menu and choose `Format Code` on `javascript`/`javascriptreact`/`typescript`/`typescriptreact`
* shortcuts: Alt+Shift+F
* Press F1, enter `react.beautify`## Extension Settings
This extension contributes the following settings:
* `react.beautify.onSave`: by default is `false`. if you set `true`, Automatically format files on save.
* `react.beautify.formatter`: select the formatter implementation. Accepted values are `prettydiff` and `esformatter`. default value is `prettydiff`.
* `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).## Formatter Settings
* [Pretty Diff](http://prettydiff.com/documentation.xhtml)
* [esformatter](https://github.com/millermedeiros/esformatter/blob/master/doc/config.md)
* [esformatter-jsx](https://github.com/royriojas/esformatter-jsx#config)## Releases
### 0.3.0: 2016-10-18
* Adopt formatOnSave changes
* thanks for @jrieken !!### 0.2.0: 2016-09-30
* add typescript support### 0.1.0: 2016-09-23
* add javascript support### 0.0.1: 2016-09-22
* initial release