Skip to content

Commit

Permalink
VS Code Prettier plugin as default formatter
Browse files Browse the repository at this point in the history
With VS Code version 1.33.x a notification will be shown when there are
multiple formatter found for the file type in the currently active
editor. Since Prettier (1) supports most languages and is the de-factor
standard tool the VS Code Prettier plugin (2) has been configured as
editor default.
When there are unsupported languages or languages like Go that come with
their own toolchain (`gofmt`, `goimports` etc.) the default can be
overridden through the languages-specific settings scopes.

References:
  (1)  https://prettier.io
  (2) https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode

Resolves GH-197
  • Loading branch information
arcticicestudio committed Jun 8, 2019
1 parent f068287 commit b454693
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snowblocks/visual-studio-code/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"editor.codeLens": true,
"editor.colorDecorators": true,
"editor.cursorBlinking": "phase",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.emptySelectionClipboard": false,
"editor.fontFamily": "'Source Code Pro', 'Hack'",
"editor.fontSize": 20,
Expand Down

0 comments on commit b454693

Please sign in to comment.