Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 864 Bytes

editor-config.md

File metadata and controls

49 lines (38 loc) · 864 Bytes

Editor configuration

Make sure you have configured your editor to maintain a consistent coding style. When sending pull requests, we shouldn't have basic problems like inconsistent indentation.

For Ruby, we follow bbatsov/ruby-styleguide.

Sublime

# Preferences > Settings - User
{
  "tab_size": 2,
  "translate_tabs_to_spaces": true,
  "trim_trailing_white_space_on_save": true,
  "rulers": [79],
  # ...
}

Vim

set shiftwidth=2
set tabstop=2
set expandtab

Apart from the basic settings above, you can also use the vim-ruby plugin to get smart indentation and other helpful features.

VS Code

# File > Preferences > User Settings:
{
  "editor.tabSize": 2,
  "editor.insertSpaces": true,
  # ...
}