Skip to content

Instantly share code, notes, and snippets.

@mehmoodak
Last active October 18, 2022 02:56
Show Gist options
  • Save mehmoodak/9f5e114cd415f72376b7f1ff565c39c6 to your computer and use it in GitHub Desktop.
Save mehmoodak/9f5e114cd415f72376b7f1ff565c39c6 to your computer and use it in GitHub Desktop.
User settings of vscode setup
{
// ESLint
"eslint.format.enable": true,
"eslint.validate": [
"javascript",
"typescript",
"javascriptreact",
"typescriptreact"
],
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
// "editor.formatOnSave": true, // Optional
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
// "editor.formatOnSave": true, // Optional
},
"[javascriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
// "editor.formatOnSave": true, // Optional
},
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
// "editor.formatOnSave": true, // Optional
},
// Log Wrapper
"debugwrapper.wrappers": {
"javascript": "console.log( '$eSEL: ', $SEL );",
"typescript": "console.log( '$eSEL: ', $SEL );",
"ruby": "puts \"$eSEL: #{$SEL.inspect}\"",
"go": "fmt.Println(\"$eSEL: \", $SEL)",
"default": "print($SEL);"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment