Skip to content

Instantly share code, notes, and snippets.

@johnmeehan
Created November 19, 2019 23:41
Show Gist options
  • Save johnmeehan/a3512fe194f77f990095b62e424ae222 to your computer and use it in GitHub Desktop.
Save johnmeehan/a3512fe194f77f990095b62e424ae222 to your computer and use it in GitHub Desktop.
Vscode settings
{
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "city-lights-icons-vsc-light",
// Basic settings: turn linter(s) on
"ruby.lint": {
"rubocop": {
"lint": true, //enable all lint cops.
"only": [/* array: Run only the specified cop(s) and/or cops in the specified departments. */],
"except": [/* array: Run all cops enabled by configuration except the specified cop(s) and/or departments. */],
"forceExclusion": true, //Add --force-exclusion option
"require": [/* array: Require Ruby files. */],
"rails": true //Run extra rails cops
},
"ruby": true, //Runs ruby -wc
},
// Time (ms) to wait after keypress before running enabled linters. Ensures
// linters are only run when typing has finished and not for every keypress
"ruby.lintDebounceTime": 500,
"[ruby]": {
"editor.formatOnSave": true
},
"ruby.format": "rubocop",
"editor.formatOnSaveTimeout": 1500,
"editor.tabSize": 2,
"editor.detectIndentation": false,
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {"erb": "html"},
"files.associations": { "*.erb": "erb" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment