Skip to content

Instantly share code, notes, and snippets.

@colinlord
Created October 8, 2020 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colinlord/a6ddac3ea4f0b768ef3e06883f45977d to your computer and use it in GitHub Desktop.
Save colinlord/a6ddac3ea4f0b768ef3e06883f45977d to your computer and use it in GitHub Desktop.
My default vscode settings
// place in root of project as .vscode/settings.json
{
"workbench.colorCustomizations": {
"titleBar.activeForeground": "#fff",
"titleBar.inactiveForeground": "#000000CC",
"titleBar.activeBackground": "#F40009",
"titleBar.inactiveBackground": "#F40009CC"
},
// auto-save configs
"editor.formatOnSave": true,
// turn it off for JS and JSX, we will do this via eslint
"[javascript]": {
"editor.formatOnSave": false
},
"[javascriptreact]": {
"editor.formatOnSave": false
},
// tell the ESLint plugin to run on save
"editor.codeActionsOnSave": {
"source.fixAll": true
},
// disable prettier for JS since we are doing it through Eslint already
"prettier.disableLanguages": ["javascript", "javascriptreact"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment