Skip to content

Instantly share code, notes, and snippets.

@daninfpj
Last active March 29, 2019 15:02
Show Gist options
  • Save daninfpj/621661dc8d9aefdf87203689ba073f36 to your computer and use it in GitHub Desktop.
Save daninfpj/621661dc8d9aefdf87203689ba073f36 to your computer and use it in GitHub Desktop.
Setting up Ruby linting, formatting and debugging in VSCode

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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment