Setting up Ruby with Sublime

Install Ruby (through Chocolatey or or whatever else if you’re on Windows)

Install a couple Sublime plugins:

  • Linting: SublimeLinter + SublimeLinter-Ruby + SublimeLinter-rubocop (see docs for RuboCop on
  • Rubocop gem (if isung RuboCop) – “gem install rubocop”
  • GitGutter (if you use git)
  • AllAutocomplete
  • BeautifyRuby – requires HTML Beautifier gem (gem install htmlbeautifier)

Update some preferences (Preferences – Settings):

"auto_complete": true,
"auto_complete_commit_on_tab": true,
"copy_with_empty_selection": true,
"ensure_newline_at_eof_on_save": true,
"font_size": 11,
"index_files": true,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"word_separators": "./\\()\"'-:,.;<>~@#$%^&*|+=[]{}`~"

Some great recommendations on


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.