Notice: Since standard-format might be deprecated later. Please consider using vscode-standardjs now. We just forked a new one from vscode-eslint.
This extension adds Standard format function to JavaScript.
Please only use it when you are ok with JavaScript Standard Style.
Changes
0.0.10 (2016-07-26)
- update
standard-format to 2.2.2, with better support of jsx format - thanks @thewei
0.0.9 (2016-07-08)
- add
standardFormat.formatOnSave configuration.
0.0.8 (2016-03-13)
- Optimized code
- Fixed readme
0.0.7 (2016-03-12)
- Added keybindings notes.
0.0.6 (2016-03-12)
- Added a new command to workaround the problem with the latest Visual Studio Code 0.10.10
Installation
- Press
F1 to bring up Command Palette
- Search for
Extensions: Install Extension and select the command, VS Code would load all available extensions
- Input
JavaScript Standard Format , VS Code will filter the extension out, click and install it
Usage
- Press
F1 to bring up Command Palette
- Search for
Format code with standard-format and click it
- It will format the whole document
You can also format only those you selects.
Keybinding
You can also configurate keybinding in keybindings.json , for example:
[
{"key": "shift+cmd+f", "command": "format.standard",
"when": "editorTextFocus"}
]
License
MIT
| |