Sublime text is the kind of editor that makes people fall in love with each other at a Glance. Not only does the GUI make people shine, but its functions are even less powerful. At present, the scalability is enough, there are also a lot of articles about software and recommendation plug-ins on the Internet, and they are very good. You can find what you need. This article focuses on sublime text2. Although sublime text3 is now popular, I still use sublime text2.
I tried to search for anything on the internet, but recently I wanted to adjust the line spacing. This made it difficult for me. I did not find the settings on the software, and I did not find any online search, finally, I found it on the official sublime forum. I personally think the line spacing still affects the visual experience. Let's look at the comparison figure below:
(Some friends say they want to use color themes in the image of the article. This is not a built-in theme. I have released it, and my favorite friends can download it)
It seems that if you want to control the software well, you won't be able to figure out the configuration file clearly. At the end of the weekend, I found time to add Chinese comments to every configuration item in the configuration file. Now I am posting it to share it with you, if you have any unclear explanations, you are welcome to discuss with each other :)
In addition, this is my first blog. I will write more front-end articles to share with you in the future. Welcome to discuss them together :)
Preferences. sublime-settings file:
// While you can edit this file, it's 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 colors used within the text area // path of the topic file "color_scheme": "packages/color scheme-default/monokai. TM Theme ", // note that the font_face and font_size are overriden in the platform // specific settings file, for example," preferences (Linux ). sublime-Settings ". // because of this, setting them here will have no effect: You must set them // In Your User File preferences. // set the font and size, which must be rewritten in settings-user. The setting does not have any effect. "font_face": "Las las", "font_size": 12, // valid options are "no_bold", "no_italic", "no_antia Lias "," gray_antialias ", //" subpixel_antialias "and" no_round "(OS X only) // font options: no_bold does not show bold characters, and no_italic does not show italic, no_antialias and no_antialias disable anti-aliasing // subpixel_antialias and no_round are the unique "font_options": [], // characters that are considered to separate words // double-click the text to select the current content. If the following characters appear, the text will be truncated "word_separators": ". /()"'-:,.; [email protected] # $ % ^ & * | + = [] {} '~? ", // Set to false to prevent line numbers being drawn in the gutter // whether to display the row number" line_numbers ": True, // set to false to hide the gutter altogether // whether to display the row number sidebar "gutter": True, // spacing between the gutter and the text // the spacing between the sidebar and text of the row number "margin": 4, // fold buttons are the triangles shown in the gutter to fold regions of text // whether to display the code folding button "fold_buttons": True, // hides the fold buttons unless the mouse is over Gutter // The Code folding button always displays "fade_fold_buttons": True, // The vertical ruler is displayed in the columns which to display vertical rulers, enter a number in the brackets. The width is calculated by character. "rulers": [], // set to true to turn spell checking on by default // whether to enable the spelling check "spell_check ": false, // the number of spaces a tab is considered equal to // The Tab key tab width "tab_size": 4, // set to true to insert spaces when tab is pressed // If set to true, indent and use spaces to replace "translate_tabs_to _ Spaces ": false, // If translate_tabs_to_spaces is true, use_tab_stops will make tab and // backspace insert/delete up to the next tabstop // translate_tabs_to_spaces is set to true, the deletion/insertion of tab and backspace takes effect on the tab width. // otherwise, the deletion/insertion takes effect on a single space. "use_tab_stops": True, // set to false to disable detection of tabs. spaces on load // false: It is prohibited to detect tabs and spaces when loading "detect_indentation": True, // calculates indentation automatically when pressing Enter // press enter to automatically align with the "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. // For the C language "smart_indent": false, // adds whitespace up to the first open bracket when indenting. requires // auto_indent to be enabled. // do I need to enable auto_indent and insert a space when the parentheses are indented for the first time? (No results tested ...) "indent_to_bracket": True, // trims white space added by auto_indent when moving the caret off the/line. // whether the alignment white line is automatically filled with "trim_automatic_white_space": True, // disables horizontal scrolling if enabled according to carriage return and Tab operations. // may be set to true, false, or "Auto", where it will be disabled for // source code, and otherwise enabled. // whether to automatically wrap the line. If auto is selected, double quotation marks "word_wrap" must be added: false, // set to a value other tha N 0 to force wrapping at that column rather than the // window width // set the width of the text area in the window "wrap_width": 0, // set to false to prevent word wrapped lines from being indented to the same // level // prevent line breaks that are indented to the same level "indent_subsequent_lines": True, // draws text centered in the window rather than left aligned // if not defined, the file is centered (for example, the new file) "draw_centered": false, // controls auto pairing of quotes, brackets etc // auto match quotation marks, "Auto_match_enabled": True, // word list to use for spell checking // path to the word list for spelling check "Dictionary": "packages/language-English/en_us.dic ", // set to true to draw a border around the visible rectangle on the minimap. // The Color of the border will be determined by the "minimapborder" key in // the color scheme // whether a border is added to the visible area of the Code map, you can add the minimapborder key "draw_minimap_border" to the border color scheme: false, // if enabled, W Ill highlight any line with a caret // highlight the row where the current cursor is located "highlight_line": false, // valid values are "smooth", "phase", "Blink ", "Wide" and "solid ". // set the cursor flashing mode "caret_style": "smooth ", // set to false to disable underlining the brackets surrounding the caret // whether to display the parentheses of the current cursor and the code header and tail closure mark "match_brackets": True, // set to false if you 'd rather only highlight the brackets when the caret is // next to one // set to false "Match_brackets": True, // set to false to not highlight square brackets. this only takes effect if // match_brackets is true // whether to highlight parentheses. The value of match_brackets is true. "match_brackets_square": false, // set to false to not highlight curly brackets. this only takes effect if // match_brackets is true // whether to highlight braces. The value of match_brackets is true. "match_brackets_braces": false ,// Set to false to not highlight angle brackets. this only takes effect if // match_brackets is true // whether to highlight angle brackets. The value of match_brackets is true. "match_brackets_angle": false, // enable visualization of the matching tag in HTML and XML // highlight the two ends of the tag where the cursor is located under HTML and XML, which affects "match_tags" such as HTML, XML, and CSS ": True, // highlights other occurrences of the currently selected text // The full-text highlight character "match_selection": True, // additional Spacing at the top of each line, in pixels // set the spacing between each row and the top, in pixels. The effect is equivalent to line spacing "line_padding_top": 1, // additional spacing at the bottom of each line, in pixels // set the spacing between each row and the bottom in pixels. The effect is equivalent to line spacing "line_padding_bottom": 1, // set to false to disable scrolling past the end of the buffer. // on OS X, this value is overridden in the platform specific settings, so // you'll need to place this line in your user settings To override it. // when it is set to false, when it is scrolled to the bottom of the text, there is no buffer "scroll_past_end": True, // This controls what happens when pressing up or down when on the first // or last line. // on OS X, this value is overridden in the platform specific settings, so // you'll need to place this line in your user settings to override it. // set to true. When the cursor is already in the first row, the cursor is up at the beginning of the row. If the cursor is already in the last row, the cursor jumps to the end of the row. "move_to_limit_on_up_down": false, // set to "n One "to turn off drawing white space," selection "to draw only the // white space within the selection, and "all" to draw all white space // when you press space or tab, a white point is actually generated (one space and one point) or a White horizontal line (the width of the tab set by tab_size). When the Selected tab is set to none, when none of these vertices and threads are displayed as selection, and only the points and lines in the selected status are displayed as all, "draw_white_space" is always displayed ": "selection", // set to false to turn off the indentation guides. // The color and width of the indent Guide S may be customized by editing // the corresponding. tmtheme file, and specifying the colors "Guide", // "activeguide" and "stackguide" // determines whether the alignment white line of the tab is displayed. The color can be set in the topic file (guide, activeguide, 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./ /The alignment white line of the tab, draw_normal is always displayed, and draw_active is only the code control domain where the current cursor is located "indent_guide_options": ["draw_normal"], // set to true to removing trailing white space on Save // if it is set to true, the extra space "trim_trailing_white_space_on_save" after each row is deleted when the file is saved. ": false, // set to true to ensure the last line of the file ends in a newline // character when saving // true, when saving the file, the time mark will change to "ensure_newline_at_eof_on_save" at the end of the file: false, // set to true to Utomatically save files when switching to a different file // or application // switch to another file tag or click another non-local software area, the file is automatically saved "save_on_focus_lost": false, // The encoding to use when the encoding can't be determined automatically. // ASCII, UTF-8 and UTF-16 encodings will be automatically detected. // when encoding is not automatically detected, it will automatically detect ASCII, UTF-8 and UTF-16 "fallback_encoding": "Western (Windows 1252)", // encoding used when saving new fil Es, 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 //. // default encoding format "default_encoding": "UTF-8 ", // files containing NULL bytes are opened as hexadecimal by default // files containing NULL bytes are opened in hexadecimal format by default "enable_hexade Cimal_encoding ": True, // 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 ). // when each row ends, the Terminator "default_line_ending": "system", // 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. // when it is set to enabled, a tab is inserted between a string by tab. // when it is set to true, the code automatically matches "tab_completion" according to the environment before and after the tab ": true, // enable auto complete to be triggered automatically when typing. // The Code prompts "auto_complete": True, // The maximum file size where auto complete will be automatically triggered. // size limit for code prompts "auto_complete_size_limit": 4194304, // the delay, in MS, befor E The auto complete window is shown after typing // The Code prompts "auto_complete_delay": 50, // controls what scopes auto complete will be triggered in // control range of code prompts "auto_complete_selector": "Source-comment ", // additional situations to trigger auto complete // other situations that trigger code prompts "auto_complete_triggers": [{"selector": "text.html", "characters": "<"}], // by default, auto complete will commit the current completio N on enter. // This setting can be used to make it complete on tab instead. // completing on tab is generally a superior option, as it removes // ambiguity between committing the completion and inserting a newline. // if it is set to false, press ENTER or click to display the code to be prompted. However, if it is set to true, the line feed "auto_complete_commit_on_tab" is not displayed, // controls if auto complete is shown when snippet fields are active. // only relevant if auto_complete _ Commit_on_tab is true. // auto_complete_commit_on_tab must be set to true to control the activity of code prompts (not clear ...) "auto_complete_with_fields": false, // by default, Shift + TAB will only unindent if the selection spans // multiple lines. when pressing SHIFT + tab at other times, it'll insert a // Tab character-This allows tabs to be inserted when tab_completion is // enabled. set this to true to make shift + TAB always unindent, instead // Inserting tabs. // if it is set to false, Shift + TAB will always Insert the tab "shift_tab_unindent": True, // if true, the selected text will be copied into the find panel when it's // shown. // on OS X, this value is overridden in the platform specific settings, so // you'll need to place this line in your user settings to override it. // press Ctrl + F to automatically copy the selected text to the "find_selected_text": True, // user interface settings /// th E theme controls the look of sublime text's UI (buttons, tabs, scroll bars, etc) // datapackagestheme-defaultdefault. topic of sublime-theme control software "theme": "default. sublime-Theme ", // set to 0 to disable smooth scrolling. set to a value between 0 and 1 to // scroll slower, or set to larger than 1 to scroll faster // scroll speed "scroll_speed": 1.0, // controls side bar animation when expanding or collapsing folders // Animation "tree_animation_enabled": True, // The close button of the tab "show_tab_close_buttons": True, // OS X 10.7 only: Set to true to disable lion style full screen support. // sublime text must be restarted for this to take effect. // for OS X "use_simple_full_screen": false, // valid values are "system", "enabled" and "disabled" // horizontal vertical scroll bar: system and disabled are the default display modes, and enabled is the Auto Hide display mode. "overlay_scroll_bars": "system", // applic Ation behavior settings // exiting the application with hot_exit enabled will cause it to close // immediately without prompting. unsaved modifications and open files will // be preserved and restored when next starting. /// closing a window with an associated project will also close the window // without prompting, preserving unsaved changes in the workspace file // alongside the project. // popular features! When you exit, the system does not prompt whether to save the file. Instead, the system exits directly. // when you open the software next time, the file remains in the status before exiting, but it is not actually written in the original file "hot_exit": True, // remember_open_files makes the application start up with the last set of // open files. changing this to false will have no effect if hot_exit is // true // The software uses the final setting to open the file. If hot_exit is set to true, "remember_open_files": True, // OS X only: When files are opened from finder, or by dragging onto the // dock icon, this controls if a new window is created or not. // for OS X "open_files_in_new_window": True, // set to true to close windows as soon as the last file is closed, unless // There's a folder open within the window. this is always enabled on OS X, // changing it here won't modify the behavior. // for OS X "outputs": True, // which files will be displayed on the sidebar // 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 "]," file_exclude_patterns ":["*. PYC ","*. pyo ","*. EXE ","*. DLL ","*. OBJ ","*. O ","*. A ","*. lib ","*. so ","*. dylib ","*. NCB ","*. SDF ","*. suo ","*. PDB ","*. IDB ",". ds_store ","*. class ","*. PSD ","*. DB "], // these files will still show up in the side bar, but won't be supported in // goto anything or find in files" binary_file_patterns ":["*. jpg ","*. JPEG ","*. PNG ","*. GIF ","*. TTF ","*. TGA ","*. DDS ","*. ICO ","*. EOT ","*. PDF ","*. SWF ","*. jar ","*. zip "], // list any packages to ignore here. when removing entries from this list, // a restart may be required if the package contains plugins. // Delete the plug-in you want to ignore. Restart "ignored_packages": ["vintage"]}.
Sublime text 2 configuration file details