Skip to content

Instantly share code, notes, and snippets.

@calrrox
Last active February 14, 2020 22:19
Show Gist options
  • Save calrrox/f35fd8a21705e86f4efbaf2f4eb325ec to your computer and use it in GitHub Desktop.
Save calrrox/f35fd8a21705e86f4efbaf2f4eb325ec to your computer and use it in GitHub Desktop.
configuration for vs code
// Instalar extenciones:
// - endwise
// - Ruby
// - Ruby Solargraph
// - VSCode Ruby
// - https://github.com/ruby-debug/ruby-debug-ide
// - vscode-dbml
// - Live Share (microsoft account o github)
// - Gem lens
// - GitLens
// - Better Haml
{
"ruby.useBundler": true, //run non-lint commands with bundle exec
"ruby.useLanguageServer": true, // use the internal language server (see below)
"ruby.lint": {
"rubocop": {
"useBundler": true // enable rubocop via bundler
},
"reek": {
"useBundler": true // enable reek via bundler
}
},
"ruby.format": "rubocop", // use rubocop for formatting
"files.associations": {
"*.html.erb": "html"
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"editor.formatOnSave": true,
"solargraph.autoformat": true,
"solargraph.diagnostics": true,
"solargraph.formatting": true,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"editor.tabCompletion": "on",
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"editor.renderWhitespace": "all"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment