Skip to content

Instantly share code, notes, and snippets.

@falonofthetower
Last active August 29, 2015 14:25
Show Gist options
  • Save falonofthetower/7f3db0aed74be1f6dc3a to your computer and use it in GitHub Desktop.
Save falonofthetower/7f3db0aed74be1f6dc3a to your computer and use it in GitHub Desktop.

Sublime: Go to Preferences -> Settings -> More -> Syntax Specific -> User. This should open a settings window named Ruby.sublime-settings

{
  "tab_size": 2,
  "translate_tabs_to_spaces": true
  "detect_indentation": false
}

Vim:

In ~/.vimrc

set tabstop=2
set shiftwidth=2
set expandtab

Nano:

In ~/.nanorc

set tabsize 2
set tabstospaces

Textmate: http://superuser.com/questions/416004/how-to-adjust-indentation-in-textmate

Emacs:

In ~/.emacs

(setq default-tab-width 2)
(setq-default indent-tabs-mode nil)
@cglee
Copy link

cglee commented Jul 18, 2015

@falonofthetower - thanks, the assignment has been updated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment