Skip to content

Instantly share code, notes, and snippets.

@kugaevsky
Created July 18, 2012 10:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kugaevsky/3135452 to your computer and use it in GitHub Desktop.
Save kugaevsky/3135452 to your computer and use it in GitHub Desktop.
Sublime Text 2 preferences
// Settings in here override those in "Default/Preferences.sublime-settings", and
// are overridden in turn by file type specific settings.
{
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
// Set to false to prevent line numbers being drawn in the gutter
"line_numbers": true,
// The number of spaces a tab is considered equal to
"tab_size": 2,
// Set to true to insert 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,
// Set to false to disable detection of tabs vs. spaces on load
"detect_indentation": true,
// Calculates indentation automatically when pressing enter
"auto_indent": true,
// Makes auto indent a little smarter, e.g., by indenting the next line
// after an if statement in C. Requires auto_indent to be enabled.
"smart_indent": true,
// Adds whitespace up to the first open bracket when indenting. Requires
// auto_indent to be enabled.
"indent_to_bracket": true,
// Trims white space added by auto_indent when moving the caret off the
// line.
"trim_automatic_white_space": true,
// Set to false to prevent word wrapped lines from being indented to the same
// level
"indent_subsequent_lines": true,
// Controls auto pairing of quotes, brackets etc
"auto_match_enabled": true,
// If enabled, will highlight any line with a caret
"highlight_line": true,
// Valid values are "smooth", "phase", "blink", "wide" and "solid".
"caret_style": "smooth",
// Set to false to disable underlining the brackets surrounding the caret
"match_brackets": true,
// Set to false if you'd rather only highlight the brackets when the caret is
// next to one
"match_brackets_content": true,
// Set to false to not highlight square brackets. This only takes effect if
// match_brackets is true
"match_brackets_square": true,
// Set to false to not highlight curly brackets. This only takes effect if
// match_brackets is true
"match_brackets_braces": true,
// Enable visualization of the matching tag in HTML and XML
"match_tags": true,
// Highlights other occurrences of the currently selected text
"match_selection": true,
// Set to false to turn off the indentation guides.
// The color and width of the indent guides may be customized by editing
// the corresponding .tmTheme file, and specifying the colors "guide",
// "activeGuide" and "stackGuide"
"draw_indent_guides": true,
// Controls how the indent guides are drawn, valid options are
// "draw_normal" and "draw_active". draw_active will draw the indent
// guides containing the caret in a different color.
"indent_guide_options": ["draw_normal"],
// Set to true to removing trailing white space on save
"trim_trailing_white_space_on_save": true,
// Set to true to ensure the last line of the file ends in a newline
// character when saving
"ensure_newline_at_eof_on_save": true,
// Encoding used when saving new files, and files opened with an undefined
// encoding (e.g., plain ascii files). If a file is opened with a specific
// encoding (either detected or given explicitly), this setting will be
// ignored, and the file will be saved with the encoding it was opened
// with.
"default_encoding": "UTF-8",
// Determines what character(s) are used to terminate each line in new files.
// Valid values are 'system' (whatever the OS uses), 'windows' (CRLF) and
// 'unix' (LF only).
"default_line_ending": "unix",
// When enabled, pressing tab will insert the best matching completion.
// When disabled, tab will only trigger snippets or insert a tab.
// Shift+tab can be used to insert an explicit tab when tab_completion is
// enabled.
"tab_completion": true,
// When drag_text is enabled, clicking on selected text will begin a
// drag-drop operation
"drag_text": false,
//
// User Interface Settings
//
// The theme controls the look of Sublime Text's UI (buttons, tabs, scroll bars, etc)
"theme": "Soda Dark.sublime-theme",
// Makes tabs with modified files more visible
"highlight_modified_tabs": true,
"show_tab_close_buttons": false,
// Show folders in the side bar in bold
"bold_folder_labels": false,
// 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", ".idea"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment