Skip to content

Instantly share code, notes, and snippets.

@maker-leo
maker-leo / Preferences.sublime-settings
Last active December 14, 2015 19:19 — forked from leoallen85/Preferences.sublime-settings
Suggested settings for your Preferences.sublime-settings.
{
// This is the ruby default
"tab_size": 2,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
// This shows all your whitespace, including spaces and tabs
// helps keep code clean and properly indented!
"draw_white_space": "all",
@maker-leo
maker-leo / Ruby.sublime-build
Created March 11, 2013 16:53 — forked from leoallen85/Ruby.sublime-build
Go to Sublime Text 2 > Preferences > Browse Packages... to open finder, then open the Ruby.sublime-build file in the Ruby folder and replace the contents with this to get the Build command (cmd + B) working with RVM
{
"env":{
"PATH":"${HOME}/.rvm/bin:${PATH}"
},
"cmd": ["rvm-auto-ruby", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.ruby"
}