Skip to content

Instantly share code, notes, and snippets.

@maker-leo
Forked from leoallen85/Preferences.sublime-settings
Last active December 14, 2015 19:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save maker-leo/5135649 to your computer and use it in GitHub Desktop.
Save maker-leo/5135649 to your computer and use it in GitHub Desktop.
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",
// Ignore .git folder
"folder_exclude_patterns":
[
".git"
],
// This is really useful, no more hitting ⌘ + s
// your tab gets automatically saved as soon as you switch to another
"save_on_focus_lost": true,
// This cleans up your file whenever its saved
"trim_trailing_white_space_on_save": true,
// Makes it clear your lines are too long!
"word_wrap": true
}
@maker-leo
Copy link
Author

You can edit this in Sublime Text by pressing ⌘ + ,

@AlanGabbianelli
Copy link

In Sublime Text 3 it is slightly different.
I tried to edit Preferences.sublime-settings in Preferences --> Settings - Default, but in Sublime Text 3 you are not allowed to do it any more.
You have to paste these suggested settings in Preferences --> Settings - User instead.
Every settings you write in Settings - User will override those in Settings - Default.

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