Skip to content

Instantly share code, notes, and snippets.

@olivierlacan
Last active January 11, 2024 15:38
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save olivierlacan/1149379 to your computer and use it in GitHub Desktop.
Save olivierlacan/1149379 to your computer and use it in GitHub Desktop.
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
Copy link
Author

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
Copy link
Author

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

@olivierlacan
Copy link
Author

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
Copy link
Author

Added folder_exclude_patterns and file_exclude_patterns.

@olivierlacan
Copy link
Author

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

@jitendravyas
Copy link

this is helpful thanks

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