The steps to getting VS Code setup:
From the Command Palette (ctrl+shift+p):
Preferences: Open Settings (JSON)
Add:
{
...
"workbench.settings.useSplitJSON": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.tslint": true,
"source.fixAll.stylelint": true
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.formatOnPaste": true
},
...
}
Save and reopen.
With user settings open, select WORKSPACE option, found next to USER title of settings page. This adds new file to a project root .vscode/settings.json where we add the following:
// .vscode/settings.json
{
"files.exclude": {
"node_modules": true,
"package-lock.json": true,
},
"[javascript]": {
"editor.tabSize": 2
}
}