How to setup VS Code for Ruby development
After some trial and error with the various extensions available for Ruby, I've found the following combination to work well:
Ruby for debugging, syntax highlighting and linting. I use these VS Code User Settings:
"ruby.useLanguageServer": true,
"ruby.lint": {
"ruby": true
}
Solargraph for intellisense and autocomplete.
endwise for wisely adding end
to code structures. (Inspired by tpope's endwise.vim)
Prettier and plugin-ruby for formatting.
Prettier plugin support is on the way, but for now we have to do this
Bonus for Rails: PostgreSQL for writing queries within the editor.
Tweet