Last active
October 21, 2015 23:22
-
-
Save cooniur/641e831c1123a64f878f to your computer and use it in GitHub Desktop.
JavaScript settings for Sublime Text 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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, | |
// Disables horizontal scrolling if enabled. | |
// May be set to true, false, or "auto", where it will be disabled for | |
// source code, and otherwise enabled. | |
"word_wrap": "auto", | |
// Set to a value other than 0 to force wrapping at that column rather than the | |
// window width | |
"wrap_width": 0, | |
// Set to false to prevent word wrapped lines from being indented to the same | |
// level | |
"indent_subsequent_lines": true, | |
// Draws text centered in the window rather than left aligned | |
"draw_centered": false, | |
// Controls auto pairing of quotes, brackets etc | |
"auto_match_enabled": 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_active"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit: https://github.com/hyfn/sublime-text-2-syntax-settings/blob/master/Javascript.sublime-settings