VS Code package to format your Javascript using Prettier.
Install through VS Code extensions. Search for Prettier - JavaScript formatter
Visual Studio Code Market Place: Prettier - JavaScript formatter
Can also be installed using
ext install prettier-vscode
1. Select the text you want to Prettify
2. CMD + Shift + P -> Prettier
Automatically format your Javascript file on save by enabling the Format On Save package setting. This is off by default.
Format Javascript files when saving.
Fit code within this line limit
Number of spaces it should use per tab
Use the flow parser instead of babylon
If true, will use single instead of double quotes
Controls the printing of trailing commas wherever possible
Controls the printing of spaces inside array and objects
This is my first Visual Studio Extension so I probably made some terrible choices. Feel free to open issue or PRs!