Install: https://github.com/rubyide/vscode-ruby
{
"ruby.lint": {
"rubocop": {
"executePath": "$GEM_HOME/bin" # Or replace with the result of: `echo "$(rvm gemdir)/bin"`
},
"ruby": true
},
"[ruby]": {
"editor.formatOnSave": true
},
"ruby.format": "rubocop",
"editor.formatOnSaveTimeout": 1500
}