Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Basic Sublime Text 2 settings for Rails development
{
"use_simple_full_screen": false,
// calculates indentation automatically when pressing enter
"auto_indent": true,
// sets the colors used within the text area (default)
// see https://github.com/olivierlacan/monokaim to download
// the customized Monokai I use.
"color_scheme": "Packages/Color Scheme - Default/Monokaim.tmTheme",
// useful to block endings and closing tags
"draw_indent_guides": true,
// highly legible monospaced font
"font_face": "Inconsolata",
// glasses are expensive, protect your eyesight
"font_size": 19.0,
// turning off Vintage (Vim-like) Mode
"ignored_packages":
[
"Vintage"
],
// letting it breaaaathe!
"line_padding_bottom": 1,
"line_padding_top": 1,
// setting for the 'alignment' package
"mid_line_tabs": false,
// using two spaces
"tab_size": 2,
// inserts spaces when tab is pressed
"translate_tabs_to_spaces": true,
// if translate_tabs_to_spaces is true, use_tab_stops will make tab and
// backspace insert/delete up to the next tabstop
"use_tab_stops": true,
// tired of trying to decipher whether something's a folder or a file?
"bold_folder_labels": true,
// creates useful wrapping guides to know when to end a line of code
"rulers": [70, 80],
// folder_exclude_patterns and file_exclude_patterns control which files
// are listed in folders on the side bar. These can also be set on a per-
// project basis.
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "bin", ".bundle", "vendor/cache", "tmp", "coverage"],
"file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db", ".scssc"]
}
@olivierlacan

This comment has been minimized.

Copy link
Owner Author

olivierlacan commented Sep 7, 2011

You can adjust the text line height with these two values:

"line_padding_top": 5,
"line_padding_bottom": 5

They default to 0 (pixels).

You can find tons of other settings here: http://www.sublimetext.com/docs/file-type-preferences

@olivierlacan

This comment has been minimized.

Copy link
Owner Author

olivierlacan commented Apr 17, 2012

Added the new bold_folder_labels thanks to @drewbarontini, a great addition for clear file navigation.

@olivierlacan

This comment has been minimized.

Copy link
Owner Author

olivierlacan commented Apr 19, 2012

Added comments for every setting and the great rulers setting that allows you to pass it an array of columns (based on the number of characters from the left) to trace a wrapping guide.

@olivierlacan

This comment has been minimized.

Copy link
Owner Author

olivierlacan commented Aug 16, 2012

Added folder_exclude_patterns and file_exclude_patterns.

@olivierlacan

This comment has been minimized.

Copy link
Owner Author

olivierlacan commented Aug 19, 2012

Added the nasty .scssc (compiled SCSS) files to the file_exclude_patterns..

@jitendravyas

This comment has been minimized.

Copy link

jitendravyas commented Nov 5, 2013

this is helpful thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.