{"id":163,"date":"2012-08-30T18:15:12","date_gmt":"2012-08-30T10:15:12","guid":{"rendered":"http:\/\/www.bluesdream.com\/blog\/?p=163"},"modified":"2013-01-24T10:31:03","modified_gmt":"2013-01-24T02:31:03","slug":"sublime-text2-configure-explain","status":"publish","type":"post","link":"https:\/\/www.bluesdream.com\/blog\/sublime-text2-configure-explain.html","title":{"rendered":"\u5f00\u53d1\u4eba\u5458\u7684\u5229\u5668 &#8211; Sublime Text 2 \u914d\u7f6e\u6587\u4ef6\u8be6\u89e3"},"content":{"rendered":"<p>Sublime Text 2 \u81ea\u5b9a\u4e49\u914d\u7f6e\u7684\u65b9\u6cd5\u662f\uff1amenu \u2192\u00a0Preferences\u00a0\u2192\u00a0Settings - User<\/p>\n<p>Preferences.sublime-settings\u6587\u4ef6\uff1a<br \/>\n<span style=\"color: #808080;\">\/\/ While you can edit this file, it\u2019s best to put your changes in<\/span><br \/>\n<span style=\"color: #808080;\"> \/\/ \"User\/Preferences.sublime-settings\", which overrides the settings in here.<\/span><br \/>\n<span style=\"color: #808080;\"> \/\/<\/span><br \/>\n<span style=\"color: #808080;\"> \/\/ Settings may also be placed in file type specific options files, for<\/span><br \/>\n<span style=\"color: #808080;\"> \/\/ example, in Packages\/Python\/Python.sublime-settings for python files.<\/span><br \/>\n<span style=\"color: #808080;\"> {<\/span><br \/>\n<span style=\"color: #999999;\">\/\/ Sets the colors used within the text area<\/span><br \/>\n\/\/ \u4e3b\u9898\u6587\u4ef6\u7684\u8def\u5f84<br \/>\n\"color_scheme\": \"Packages\/Color Scheme \u2013 Default\/Monokai.tmTheme\",<!--more--><\/p>\n<p><span style=\"color: #999999;\">\/\/ Note that the font_face and font_size are overriden in the platform<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ specific settings file, for example, \"Preferences (Linux).sublime-settings\".<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ Because of this, setting them here will have no effect: you must set them<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ in your User File Preferences.<\/span><br \/>\n\/\/ \u8bbe\u7f6e\u5b57\u4f53\u548c\u5927\u5c0f\uff0c\u5fc5\u987b\u5728Settings-User\u91cc\u91cd\u5199\uff0c\u8fd9\u91cc\u8bbe\u7f6e\u6ca1\u6709\u4efb\u4f55\u6548\u679c<br \/>\n\"font_face\": \"Consolas\",<br \/>\n\"font_size\": 12,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Valid options are \"no_bold\", \"no_italic\", \"no_antialias\", \"gray_antialias\",<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ \"subpixel_antialias\" and \"no_round\" (OS X only)<\/span><br \/>\n\/\/ \u5b57\u4f53\u9009\u9879\uff1ano_bold\u4e0d\u663e\u793a\u7c97\u4f53\u5b57\uff0cno_italic\u4e0d\u663e\u793a\u659c\u4f53\u5b57\uff0cno_antialias\u548cno_antialias\u5173\u95ed\u53cd\u952f\u9f7f<br \/>\n\/\/ subpixel_antialias\u548cno_round\u662fOS X\u7cfb\u7edf\u72ec\u6709\u7684<br \/>\n\"font_options\": [],<\/p>\n<p><span style=\"color: #999999;\">\/\/ Characters that are considered to separate words<\/span><br \/>\n\/\/ \u5728\u6587\u5b57\u4e0a\u53cc\u51fb\u4f1a\u5168\u9009\u5f53\u524d\u7684\u5185\u5bb9\uff0c\u5982\u679c\u91cc\u9762\u51fa\u73b0\u4ee5\u4e0b\u5b57\u7b26\uff0c\u5c31\u4f1a\u88ab\u622a\u65ad<br \/>\n\"word_separators\": \".\/\\\\()\\\"\u2018-:,.;&lt;&gt;~!@#$%^&amp;*|+=[]{}`~?\",<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to false to prevent line numbers being drawn in the gutter<\/span><br \/>\n\/\/ \u662f\u5426\u663e\u793a\u884c\u53f7<br \/>\n\"line_numbers\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to false to hide the gutter altogether<\/span><br \/>\n\/\/ \u662f\u5426\u663e\u793a\u884c\u53f7\u8fb9\u680f<br \/>\n\"gutter\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Spacing between the gutter and the text<\/span><br \/>\n\/\/ \u884c\u53f7\u8fb9\u680f\u548c\u6587\u5b57\u7684\u95f4\u8ddd<br \/>\n\"margin\": 4,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Fold buttons are the triangles shown in the gutter to fold regions of text<\/span><br \/>\n\/\/ \u662f\u5426\u663e\u793a\u4ee3\u7801\u6298\u53e0\u6309\u94ae<br \/>\n\"fold_buttons\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Hides the fold buttons unless the mouse is over the gutter<\/span><br \/>\n\/\/ \u4e0d\u7ba1\u9f20\u6807\u5728\u4e0d\u5728\u884c\u53f7\u8fb9\u680f\uff0c\u4ee3\u7801\u6298\u53e0\u6309\u94ae\u4e00\u76f4\u663e\u793a<br \/>\n\"fade_fold_buttons\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Columns in which to display vertical rulers<\/span><br \/>\n\/\/\u5217\u663e\u793a\u5782\u76f4\u6807\u5c3a\uff0c\u5728\u4e2d\u62ec\u53f7\u91cc\u586b\u5165\u6570\u5b57\uff0c\u5bbd\u5ea6\u6309\u5b57\u7b26\u8ba1\u7b97<br \/>\n\"rulers\": [],<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to true to turn spell checking on by default<\/span><br \/>\n\/\/ \u662f\u5426\u6253\u5f00\u62fc\u5199\u68c0\u67e5<br \/>\n\"spell_check\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ The number of spaces a tab is considered equal to<\/span><br \/>\n\/\/ Tab\u952e\u5236\u8868\u7b26\u5bbd\u5ea6<br \/>\n\"tab_size\": 4,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to true to insert spaces when tab is pressed<\/span><br \/>\n\/\/ \u8bbe\u4e3atrue\u65f6\uff0c\u7f29\u8fdb\u548c\u9047\u5230Tab\u952e\u65f6\u4f7f\u7528\u7a7a\u683c\u66ff\u4ee3<br \/>\n\"translate_tabs_to_spaces\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ If translate_tabs_to_spaces is true, use_tab_stops will make tab and<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ backspace insert\/delete up to the next tabstop<\/span><br \/>\n\/\/ translate_tabs_to_spaces\u8bbe\u7f6e\u4e3atrue\uff0cTab\u548cBackspace\u7684\u5220\u9664\/\u63d2\u5165\u4f5c\u7528\u4e8e\u5236\u8868\u7b26\u5bbd\u5ea6<br \/>\n\/\/ \u5426\u5219\u4f5c\u7528\u4e8e\u5355\u4e2a\u7a7a\u683c<br \/>\n\"use_tab_stops\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to false to disable detection of tabs vs. spaces on load<\/span><br \/>\n\/\/ false\u65f6\u7981\u6b62\u5728\u8f7d\u5165\u7684\u65f6\u5019\u68c0\u6d4b\u5236\u8868\u7b26\u548c\u7a7a\u683c<br \/>\n\"detect_indentation\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Calculates indentation automatically when pressing enter<\/span><br \/>\n\/\/ \u6309\u56de\u8f66\u65f6\uff0c\u81ea\u52a8\u4e0e\u5236\u8868\u4f4d\u5bf9\u9f50<br \/>\n\"auto_indent\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Makes auto indent a little smarter, e.g., by indenting the next line<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ after an if statement in C. Requires auto_indent to be enabled.<\/span><br \/>\n\/\/\u9488\u5bf9C\u8bed\u8a00\u7684<br \/>\n\"smart_indent\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Adds whitespace up to the first open bracket when indenting. Requires<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ auto_indent to be enabled.<\/span><br \/>\n\/\/ \u9700\u8981\u542f\u7528auto_indent\uff0c\u7b2c\u4e00\u6b21\u6253\u5f00\u62ec\u53f7\u7f29\u8fdb\u65f6\u63d2\u5165\u7a7a\u683c\uff1f\uff08\u6ca1\u6d4b\u8bd5\u51fa\u6765\u6548\u679c\u2026\uff09<br \/>\n\"indent_to_bracket\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Trims white space added by auto_indent when moving the caret off the<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ line.<\/span><br \/>\n\/\/ \u663e\u793a\u5bf9\u9f50\u7684\u767d\u7ebf\u662f\u5426\u6839\u636e\u56de\u8f66\u3001tab\u7b49\u64cd\u4f5c\u81ea\u52a8\u586b\u8865<br \/>\n\"trim_automatic_white_space\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Disables horizontal scrolling if enabled.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ May be set to true, false, or \"auto\", where it will be disabled for<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ source code, and otherwise enabled.<\/span><br \/>\n\/\/ \u662f\u5426\u81ea\u52a8\u6362\u884c\uff0c\u5982\u679c\u9009auto\uff0c\u9700\u8981\u52a0\u53cc\u5f15\u53f7<br \/>\n\"word_wrap\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to a value other than 0 to force wrapping at that column rather than the<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ window width<\/span><br \/>\n\/\/ \u8bbe\u7f6e\u7a97\u53e3\u5185\u6587\u5b57\u533a\u57df\u7684\u5bbd\u5ea6<br \/>\n\"wrap_width\": 0,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to false to prevent word wrapped lines from being indented to the same<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ level<\/span><br \/>\n\/\/ \u9632\u6b62\u88ab\u7f29\u8fdb\u5230\u540c\u4e00\u7ea7\u7684\u5b57\u6362\u884c<br \/>\n\"indent_subsequent_lines\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Draws text centered in the window rather than left aligned<\/span><br \/>\n\/\/ \u5982\u679c\u6ca1\u6709\u5b9a\u4e49\u8fc7\uff0c\u5219\u6587\u4ef6\u5c45\u4e2d\u663e\u793a\uff08\u6bd4\u5982\u65b0\u5efa\u7684\u6587\u4ef6\uff09<br \/>\n\"draw_centered\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Controls auto pairing of quotes, brackets etc<\/span><br \/>\n\/\/ \u81ea\u52a8\u5339\u914d\u5f15\u53f7\uff0c\u62ec\u53f7\u7b49<br \/>\n\"auto_match_enabled\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Word list to use for spell checking<\/span><br \/>\n\/\/ \u62fc\u5199\u68c0\u67e5\u7684\u5355\u8bcd\u5217\u8868\u8def\u5f84<br \/>\n\"dictionary\": \"Packages\/Language \u2013 English\/en_US.dic\",<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to true to draw a border around the visible rectangle on the minimap.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ The color of the border will be determined by the \"minimapBorder\" key in<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ the color scheme<\/span><br \/>\n\/\/ \u4ee3\u7801\u5730\u56fe\u7684\u53ef\u89c6\u533a\u57df\u90e8\u5206\u662f\u5426\u52a0\u4e0a\u8fb9\u6846\uff0c\u8fb9\u6846\u7684\u989c\u8272\u53ef\u5728\u914d\u8272\u65b9\u6848\u4e0a\u52a0\u5165minimapBorder\u952e<br \/>\n\"draw_minimap_border\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ If enabled, will highlight any line with a caret<\/span><br \/>\n\/\/ \u7a81\u51fa\u663e\u793a\u5f53\u524d\u5149\u6807\u6240\u5728\u7684\u884c<br \/>\n\"highlight_line\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Valid values are \"smooth\", \"phase\", \"blink\", \"wide\" and \"solid\".<\/span><br \/>\n\/\/ \u8bbe\u7f6e\u5149\u6807\u95ea\u52a8\u65b9\u5f0f<br \/>\n\"caret_style\": \"smooth\",<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to false to disable underlining the brackets surrounding the caret<\/span><br \/>\n\/\/ \u662f\u5426\u7279\u6b8a\u663e\u793a\u5f53\u524d\u5149\u6807\u6240\u5728\u7684\u62ec\u53f7\u3001\u4ee3\u7801\u5934\u5c3e\u95ed\u5408\u6807\u8bb0<br \/>\n\"match_brackets\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to false if you\u2019d rather only highlight the brackets when the caret is<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ next to one<\/span><br \/>\n\/\/ \u8bbe\u4e3afalse\u65f6\uff0c\u53ea\u6709\u5149\u6807\u5728\u62ec\u53f7\u6216\u5934\u5c3e\u95ed\u5408\u6807\u8bb0\u7684\u4e24\u7aef\u65f6\uff0cmatch_brackets\u624d\u751f\u6548<br \/>\n\"match_brackets_content\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to false to not highlight square brackets. This only takes effect if<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ match_brackets is true<\/span><br \/>\n\/\/ \u662f\u5426\u7a81\u51fa\u663e\u793a\u5706\u62ec\u53f7\uff0cmatch_brackets\u4e3atrue\u751f\u6548<br \/>\n\"match_brackets_square\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to false to not highlight curly brackets. This only takes effect if<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ match_brackets is true<\/span><br \/>\n\/\/ \u662f\u5426\u7a81\u51fa\u663e\u793a\u5927\u62ec\u53f7\uff0cmatch_brackets\u4e3atrue\u751f\u6548<br \/>\n\"match_brackets_braces\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to false to not highlight angle brackets. This only takes effect if<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ match_brackets is true<\/span><br \/>\n\/\/ \u662f\u5426\u7a81\u51fa\u663e\u793a\u5c16\u62ec\u53f7\uff0cmatch_brackets\u4e3atrue\u751f\u6548<br \/>\n\"match_brackets_angle\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Enable visualization of the matching tag in HTML and XML<\/span><br \/>\n\/\/ html\u548cxml\u4e0b\u7a81\u51fa\u663e\u793a\u5149\u6807\u6240\u5728\u6807\u7b7e\u7684\u4e24\u7aef\uff0c\u5f71\u54cdHTML\u3001XML\u3001CSS\u7b49<br \/>\n\"match_tags\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Highlights other occurrences of the currently selected text<\/span><br \/>\n\/\/ \u5168\u6587\u7a81\u51fa\u663e\u793a\u548c\u5f53\u524d\u9009\u4e2d\u5b57\u7b26\u76f8\u540c\u7684\u5b57\u7b26<br \/>\n\"match_selection\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Additional spacing at the top of each line, in pixels<\/span><br \/>\n\/\/ \u8bbe\u7f6e\u6bcf\u4e00\u884c\u5230\u9876\u90e8\uff0c\u4ee5\u50cf\u7d20\u4e3a\u5355\u4f4d\u7684\u95f4\u8ddd\uff0c\u6548\u679c\u76f8\u5f53\u4e8e\u884c\u8ddd<br \/>\n\"line_padding_top\": 1,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Additional spacing at the bottom of each line, in pixels<\/span><br \/>\n\/\/ \u8bbe\u7f6e\u6bcf\u4e00\u884c\u5230\u5e95\u90e8\uff0c\u4ee5\u50cf\u7d20\u4e3a\u5355\u4f4d\u7684\u95f4\u8ddd\uff0c\u6548\u679c\u76f8\u5f53\u4e8e\u884c\u8ddd<br \/>\n\"line_padding_bottom\": 1,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to false to disable scrolling past the end of the buffer.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ On OS X, this value is overridden in the platform specific settings, so<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ you\u2019ll need to place this line in your user settings to override it.<\/span><br \/>\n\/\/ \u8bbe\u7f6e\u4e3afalse\u65f6\uff0c\u6eda\u52a8\u5230\u6587\u672c\u7684\u6700\u4e0b\u65b9\u65f6\uff0c\u6ca1\u6709\u7f13\u51b2\u533a<br \/>\n\"scroll_past_end\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ This controls what happens when pressing up or down when on the first<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ or last line.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ On OS X, this value is overridden in the platform specific settings, so<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ you\u2019ll need to place this line in your user settings to override it.<\/span><br \/>\n\/\/ \u63a7\u5236\u5411\u4e0a\u6216\u5411\u4e0b\u5230\u7b2c\u4e00\u884c\u6216\u6700\u540e\u4e00\u884c\u65f6\u53d1\u751f\u4ec0\u4e48\uff08\u6ca1\u660e\u767d\u4e5f\u6ca1\u8bd5\u51fa\u6765\uff09<br \/>\n\"move_to_limit_on_up_down\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to \"none\" to turn off drawing white space, \"selection\" to draw only the<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ white space within the selection, and \"all\" to draw all white space<\/span><br \/>\n\/\/ \u6309space\u6216tab\u65f6\uff0c\u5b9e\u9645\u4f1a\u4ea7\u751f\u767d\u8272\u7684\u70b9\uff08\u4e00\u4e2a\u7a7a\u683c\u4e00\u4e2a\u70b9\uff09\u6216\u767d\u8272\u7684\u6a2a\u7ebf\uff08tab_size\u8bbe\u7f6e\u7684\u5236\u8868\u7b26\u7684\u5bbd\u5ea6\uff09\uff0c\u9009\u4e2d\u72b6\u6001\u4e0b\u624d\u80fd\u770b\u5230<br \/>\n\/\/ \u8bbe\u7f6e\u4e3anone\u65f6\uff0c\u4ec0\u4e48\u60c5\u51b5\u4e0b\u90fd\u4e0d\u663e\u793a\u8fd9\u4e9b\u70b9\u548c\u7ebf<br \/>\n\/\/ \u8bbe\u7f6e\u4e3aselection\u65f6\uff0c\u53ea\u663e\u793a\u9009\u4e2d\u72b6\u6001\u4e0b\u7684\u70b9\u548c\u7ebf<br \/>\n\/\/ \u8bbe\u7f6e\u4e3aall\u65f6\uff0c\u5219\u4e00\u76f4\u663e\u793a<br \/>\n\"draw_white_space\": \"selection\",<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to false to turn off the indentation guides.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ The color and width of the indent guides may be customized by editing<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ the corresponding .tmTheme file, and specifying the colors \"guide\",<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ \"activeGuide\" and \"stackGuide\"<\/span><br \/>\n\/\/ \u5236\u8868\u4f4d\u7684\u5bf9\u9f50\u767d\u7ebf\u662f\u5426\u663e\u793a\uff0c\u989c\u8272\u53ef\u5728\u4e3b\u9898\u6587\u4ef6\u91cc\u8bbe\u7f6e\uff08guide\uff0cactiveGuide\uff0cstackGuide\uff09<br \/>\n\"draw_indent_guides\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Controls how the indent guides are drawn, valid options are<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ \"draw_normal\" and \"draw_active\". draw_active will draw the indent<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ guides containing the caret in a different color.<\/span><br \/>\n\/\/ \u5236\u8868\u4f4d\u7684\u5bf9\u9f50\u767d\u7ebf\uff0cdraw_normal\u4e3a\u4e00\u76f4\u663e\u793a\uff0cdraw_active\u4e3a\u53ea\u663e\u793a\u5f53\u524d\u5149\u6807\u6240\u5728\u7684\u4ee3\u7801\u63a7\u5236\u57df<br \/>\n\"indent_guide_options\": [\"draw_normal\"],<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to true to removing trailing white space on save<\/span><br \/>\n\/\/ \u4e3atrue\u65f6\uff0c\u4fdd\u5b58\u6587\u4ef6\u65f6\u4f1a\u5220\u9664\u6bcf\u884c\u7ed3\u675f\u540e\u591a\u4f59\u7684\u7a7a\u683c<br \/>\n\"trim_trailing_white_space_on_save\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to true to ensure the last line of the file ends in a newline<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ character when saving<\/span><br \/>\n\/\/ \u4e3atrue\u65f6\uff0c\u4fdd\u5b58\u6587\u4ef6\u65f6\u5149\u6807\u4f1a\u5728\u6587\u4ef6\u7684\u6700\u540e\u5411\u4e0b\u6362\u4e00\u884c<br \/>\n\"ensure_newline_at_eof_on_save\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to true to automatically save files when switching to a different file<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ or application<\/span><br \/>\n\/\/ \u5207\u6362\u5230\u5176\u5b83\u6587\u4ef6\u6807\u7b7e\u6216\u70b9\u51fb\u5176\u5b83\u975e\u672c\u8f6f\u4ef6\u533a\u57df\uff0c\u6587\u4ef6\u81ea\u52a8\u4fdd\u5b58<br \/>\n\"save_on_focus_lost\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ The encoding to use when the encoding can\u2019t be determined automatically.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ ASCII, UTF-8 and UTF-16 encodings will be automatically detected.<\/span><br \/>\n\/\/ \u7f16\u7801\u65f6\u4e0d\u80fd\u81ea\u52a8\u68c0\u6d4b\u7f16\u7801\u65f6\uff0c\u5c06\u81ea\u52a8\u68c0\u6d4bASCII, UTF-8 \u548c UTF-16<br \/>\n\"fallback_encoding\": \"Western (Windows 1252)\",<\/p>\n<p><span style=\"color: #999999;\">\/\/ Encoding used when saving new files, and files opened with an undefined<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ encoding (e.g., plain ascii files). If a file is opened with a specific<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ encoding (either detected or given explicitly), this setting will be<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ ignored, and the file will be saved with the encoding it was opened<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ with.<\/span><br \/>\n\/\/ \u9ed8\u8ba4\u7f16\u7801\u683c\u5f0f<br \/>\n\"default_encoding\": \"UTF-8\u2033,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Files containing null bytes are opened as hexadecimal by default<\/span><br \/>\n\/\/ \u5305\u542b\u7a7a\u5b57\u8282\u7684\u6587\u4ef6\u88ab\u6253\u5f00\u9ed8\u8ba4\u4e3a\u5341\u516d\u8fdb\u5236<br \/>\n\"enable_hexadecimal_encoding\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Determines what character(s) are used to terminate each line in new files.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ Valid values are \u2018system\u2019 (whatever the OS uses), \u2018windows\u2019 (CRLF) and<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ \u2018unix\u2019 (LF only).<\/span><br \/>\n\/\/ \u6bcf\u4e00\u884c\u7ed3\u675f\u7684\u65f6\u5019\u7528\u4ec0\u4e48\u5b57\u7b26\u505a\u7ec8\u6b62\u7b26<br \/>\n\"default_line_ending\": \"system\",<\/p>\n<p><span style=\"color: #999999;\">\/\/ When enabled, pressing tab will insert the best matching completion.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ When disabled, tab will only trigger snippets or insert a tab.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ Shift+tab can be used to insert an explicit tab when tab_completion is<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ enabled.<\/span><br \/>\n\/\/ \u8bbe\u7f6e\u4e3aenabled\u65f6\uff0c\u5728\u4e00\u4e2a\u5b57\u7b26\u4e32\u95f4\u6309Tab\u5c06\u63d2\u5165\u4e00\u4e2a\u5236\u8868\u7b26<br \/>\n\/\/ \u8bbe\u7f6e\u4e3atrue\u65f6\uff0c\u6309Tab\u4f1a\u6839\u636e\u524d\u540e\u73af\u5883\u8fdb\u884c\u4ee3\u7801\u81ea\u52a8\u5339\u914d\u586b\u8865<br \/>\n\"tab_completion\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Enable auto complete to be triggered automatically when typing.<\/span><br \/>\n\/\/ \u4ee3\u7801\u63d0\u793a<br \/>\n\"auto_complete\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ The maximum file size where auto complete will be automatically triggered.<\/span><br \/>\n\/\/ \u4ee3\u7801\u63d0\u793a\u7684\u5927\u5c0f\u9650\u5236<br \/>\n\"auto_complete_size_limit\": 4194304,<\/p>\n<p><span style=\"color: #999999;\">\/\/ The delay, in ms, before the auto complete window is shown after typing<\/span><br \/>\n\/\/ \u4ee3\u7801\u63d0\u793a\u5ef6\u8fdf\u663e\u793a<br \/>\n\"auto_complete_delay\": 50,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Controls what scopes auto complete will be triggered in<\/span><br \/>\n\/\/ \u4ee3\u7801\u63d0\u793a\u7684\u63a7\u5236\u8303\u56f4<br \/>\n\"auto_complete_selector\": \"source \u2013 comment\",<\/p>\n<p><span style=\"color: #999999;\">\/\/ Additional situations to trigger auto complete<\/span><br \/>\n\/\/ \u89e6\u53d1\u4ee3\u7801\u63d0\u793a\u7684\u5176\u4ed6\u60c5\u51b5<br \/>\n\"auto_complete_triggers\": [ {\"selector\": \"text.html\", \"characters\": \"&lt;\"} ],<\/p>\n<p><span style=\"color: #999999;\">\/\/ By default, auto complete will commit the current completion on enter.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ This setting can be used to make it complete on tab instead.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ Completing on tab is generally a superior option, as it removes<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ ambiguity between committing the completion and inserting a newline.<\/span><br \/>\n\/\/ \u8bbe\u4e3afalse\u65f6\uff0c\u9009\u62e9\u63d0\u793a\u7684\u4ee3\u7801\u6309\u56de\u8f66\u6216\u70b9\u51fb\u53ef\u4ee5\u8f93\u51fa\u51fa\u6765\uff0c\u4f46\u9009\u62e9true\u65f6\u4e0d\u4f1a\u8f93\u51fa\u800c\u662f\u76f4\u63a5\u6362\u884c<br \/>\n\"auto_complete_commit_on_tab\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Controls if auto complete is shown when snippet fields are active.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ Only relevant if auto_complete_commit_on_tab is true.<\/span><br \/>\n\/\/ auto_complete_commit_on_tab\u5fc5\u987b\u4e3atrue\uff0c\u63a7\u5236\u4ee3\u7801\u63d0\u793a\u7684\u6d3b\u8dc3\u5ea6\uff08\u6ca1\u660e\u767d\u2026\uff09<br \/>\n\"auto_complete_with_fields\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ By default, shift+tab will only unindent if the selection spans<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ multiple lines. When pressing shift+tab at other times, it\u2019ll insert a<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ tab character \u2013 this allows tabs to be inserted when tab_completion is<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ enabled. Set this to true to make shift+tab always unindent, instead of<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ inserting tabs.<\/span><br \/>\n\/\/ \u8bbe\u7f6e\u4e3afalse\uff0c\u4f7f\u7528Shift + tab\u603b\u662f\u63d2\u5165\u5236\u8868\u7b26<br \/>\n\"shift_tab_unindent\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ If true, the selected text will be copied into the find panel when it\u2019s<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ shown.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ On OS X, this value is overridden in the platform specific settings, so<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ you\u2019ll need to place this line in your user settings to override it.<\/span><br \/>\n\/\/ \u9009\u4e2d\u7684\u6587\u672c\u6309Ctrl + f\u65f6\uff0c\u81ea\u52a8\u590d\u5236\u5230\u67e5\u627e\u9762\u677f\u7684\u6587\u672c\u6846\u91cc<br \/>\n\"find_selected_text\": true,<\/p>\n<p>\/\/<br \/>\n\/\/ User Interface Settings<br \/>\n\/\/<\/p>\n<p><span style=\"color: #999999;\">\/\/ The theme controls the look of Sublime Text\u2019s UI (buttons, tabs, scroll bars, etc)<\/span><br \/>\n\/\/ Data\\Packages\\Theme \u2013 Default\\Default.sublime-theme\u63a7\u5236\u8f6f\u4ef6\u7684\u4e3b\u9898<br \/>\n\"theme\": \"Default.sublime-theme\",<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to 0 to disable smooth scrolling. Set to a value between 0 and 1 to<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ scroll slower, or set to larger than 1 to scroll faster<\/span><br \/>\n\/\/ \u6eda\u52a8\u7684\u901f\u5ea6<br \/>\n\"scroll_speed\": 1.0,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Controls side bar animation when expanding or collapsing folders<\/span><br \/>\n\/\/ \u5de6\u8fb9\u8fb9\u680f\u6587\u4ef6\u5939\u52a8\u753b<br \/>\n\"tree_animation_enabled\": true,<br \/>\n\/\/ \u6807\u7b7e\u9875\u7684\u5173\u95ed\u6309\u94ae<br \/>\n\"show_tab_close_buttons\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ OS X 10.7 only: Set to true to disable Lion style full screen support.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ Sublime Text must be restarted for this to take effect.<\/span><br \/>\n\/\/ \u9488\u5bf9OS X<br \/>\n\"use_simple_full_screen\": false,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Valid values are \"system\", \"enabled\" and \"disabled\"<\/span><br \/>\n\/\/ \u6c34\u5e73\u5782\u76f4\u6eda\u52a8\u6761\uff1asystem\u548cdisabled\u4e3a\u9ed8\u8ba4\u663e\u793a\u65b9\u5f0f\uff0cenabled\u4e3a\u81ea\u52a8\u9690\u85cf\u663e\u793a<br \/>\n\"overlay_scroll_bars\": \"system\",<\/p>\n<p>\/\/<br \/>\n\/\/ Application Behavior Settings<br \/>\n\/\/<\/p>\n<p><span style=\"color: #999999;\">\/\/ Exiting the application with hot_exit enabled will cause it to close<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ immediately without prompting. Unsaved modifications and open files will<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ be preserved and restored when next starting.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ Closing a window with an associated project will also close the window<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ without prompting, preserving unsaved changes in the workspace file<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ alongside the project.<\/span><br \/>\n\/\/ \u70ed\u63a8\u51fa\u529f\u80fd\uff01\u9000\u51fa\u65f6\u4e0d\u4f1a\u63d0\u793a\u662f\u5426\u4fdd\u5b58\u6587\u4ef6\uff0c\u800c\u662f\u76f4\u63a5\u9000\u51fa<br \/>\n\/\/ \u4e0b\u6b21\u6253\u5f00\u8f6f\u4ef6\u65f6\uff0c\u6587\u4ef6\u4fdd\u6301\u9000\u51fa\u524d\u7684\u72b6\u6001\uff0c\u6ca1\u6765\u5f97\u53ca\u4fdd\u5b58\u7684\u5185\u5bb9\u90fd\u5728\uff0c\u4f46\u5e76\u6ca1\u6709\u771f\u5b9e\u7684\u5199\u5728\u539f\u6587\u4ef6\u91cc<br \/>\n\"hot_exit\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ remember_open_files makes the application start up with the last set of<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ open files. Changing this to false will have no effect if hot_exit is<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ true<\/span><br \/>\n\/\/ \u8f6f\u4ef6\u4f7f\u7528\u6700\u540e\u7684\u8bbe\u5b9a\u6253\u5f00\u6587\u4ef6\uff0chot_exit\u4e3atrue\u65f6\u6ca1\u6709\u6548\u679c<br \/>\n\"remember_open_files\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ OS X only: When files are opened from finder, or by dragging onto the<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ dock icon, this controls if a new window is created or not.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ \u9488\u5bf9OS X<\/span><br \/>\n\"open_files_in_new_window\": true,<\/p>\n<p><span style=\"color: #999999;\">\/\/ Set to true to close windows as soon as the last file is closed, unless<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ there\u2019s a folder open within the window. This is always enabled on OS X,<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ changing it here won\u2019t modify the behavior.<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ \u9488\u5bf9OS X<\/span><br \/>\n\"close_windows_when_empty\": true,<br \/>\n\/\/ \u54ea\u4e9b\u6587\u4ef6\u4f1a\u88ab\u663e\u793a\u5230\u8fb9\u680f\u4e0a<br \/>\n\/\/ folder_exclude_patterns and file_exclude_patterns control which files<br \/>\n\/\/ are listed in folders on the side bar. These can also be set on a per-<br \/>\n\/\/ project basis.<br \/>\n\"folder_exclude_patterns\": [\".svn\", \".git\", \".hg\", \"CVS\"],<br \/>\n\"file_exclude_patterns\": [\"*.pyc\", \"*.pyo\", \"*.exe\", \"*.dll\", \"*.obj\",\"*.o\", \"*.a\", \"*.lib\", \"*.so\", \"*.dylib\", \"*.ncb\", \"*.sdf\", \"*.suo\", \"*.pdb\", \"*.idb\", \".DS_Store\", \"*.class\", \"*.psd\", \"*.db\"],<br \/>\n\/\/ These files will still show up in the side bar, but won\u2019t be included in<br \/>\n\/\/ Goto Anything or Find in Files<br \/>\n\"binary_file_patterns\": [\"*.jpg\", \"*.jpeg\", \"*.png\", \"*.gif\", \"*.ttf\", \"*.tga\", \"*.dds\", \"*.ico\", \"*.eot\", \"*.pdf\", \"*.swf\", \"*.jar\", \"*.zip\"],<\/p>\n<p><span style=\"color: #999999;\">\/\/ List any packages to ignore here. When removing entries from this list,<\/span><br \/>\n<span style=\"color: #999999;\"> \/\/ a restart may be required if the package contains plugins.<\/span><br \/>\n\/\/ \u5220\u9664\u4f60\u60f3\u8981\u5ffd\u7565\u7684\u63d2\u4ef6\uff0c\u9700\u8981\u91cd\u542f<br \/>\n\"ignored_packages\": [\"Vintage\"]<br \/>\n}<\/p>\n<p>\u539f\u6587\u5730\u5740\uff1ahttp:\/\/www.feelcss.com\/sublime-text-2-settings.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sublime Text 2 \u81ea\u5b9a\u4e49\u914d\u7f6e\u7684\u65b9\u6cd5\u662f\uff1amenu \u2192\u00a0Preferences\u00a0\u2192\u00a0Settings - User Preferences.sublime-settings\u6587\u4ef6\uff1a \/\/ While you can edit this file, it\u2019s best to put your changes in \/\/ \"User\/Preferences.sublime-settings\", which overrides the settings in here. \/\/ \/\/ Settings may also be placed in file type specific options files, for \/\/ example, in Packages\/Python\/Python.sublime-settings for python files. { \/\/ Sets the &hellip; <a href=\"https:\/\/www.bluesdream.com\/blog\/sublime-text2-configure-explain.html\"><span class=\"more-link\">[ \u67e5\u770b\u5168\u6587... ]<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":164,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[77,85],"class_list":["post-163","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-program","tag-sublime","tag-sublime-text"],"_links":{"self":[{"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/posts\/163"}],"collection":[{"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/comments?post=163"}],"version-history":[{"count":0,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/posts\/163\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/media\/164"}],"wp:attachment":[{"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/media?parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/categories?post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/tags?post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}