Prettier formatter for Visual Studio Code with tabs supportVS Code package to format your Javascript using Prettier. Based on Esben Petersen's extension InstallationInstall through VS Code extensions. Search for Visual Studio Code Market Place: Prettier - JavaScript formatter Can also be installed using
UsageUsing Command Palette (CMD + Shift + P)
Format On SaveRespects SettingsprintWidth (default: 120)Fit code within this line limit tabWidth (default: 4)Number of spaces it should use per tab useFlowParser (default: false)Use the flow parser instead of babylon. Deprecated use singleQuote (default: true)If true, will use single instead of double quotes trailingComma (default: 'es5')Controls the printing of trailing commas wherever possible. Valid options:
bracketSpacing (default: true)Controls the printing of spaces inside object literals jsxBracketSameLine (default: false)If true, puts the parser (default: 'babylon')Which parser to use. Valid options are 'flow' and 'babylon' useTabs (default: 'true')Use tabs instead of spaces ContributeThis is my first Visual Studio Extension so I probably made some terrible choices. Feel free to open issue or PRs! |