Sublime Text 2 Configuration Manual

Source: Internet
Author: User
Tags windows 1252

Preferences.sublime-settings file:

While you can-edit this file, it's best-put your changes in
"User/preferences.sublime-settings", which overrides the settings in here.
//
Settings may also is 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 to the theme file
"Color_scheme": "Packages/color scheme–default/monokai.tmtheme",

Note that the Font_face and Font_size is overriden in the platform
Specific settings file, for example, "Preferences (Linux). Sublime-settings".
Because of this, setting them here would have no effect:you must set them
In your User File Preferences.
Set the font and size, must be rewritten in Settings-user, this setting does not have any effect
"Font_face": "Consolas",
"Font_size": 12,

Valid options are "No_bold", "No_italic", "No_antialias", "Gray_antialias",
"Subpixel_antialias" and "No_round" (OS X only)
Font options: No_bold do not display bold characters, no_italic do not display italics, No_antialias and No_antialias turn off anti-aliasing
Subpixel_antialias and No_round are unique to OS X systems.
"Font_options": [],

Characters that is considered to separate words
Double click on the text will select the current content, if the following characters appear, it will be truncated
"Word_separators": "./\\ () \" '-:,.; <>[email protected]#$%^&*|+=[]{} ' ~? ',

Set to False to prevent line numbers being drawn in the gutter
Whether to display line numbers
"Line_numbers": true,

Set to False to hide the gutter altogether
Whether to show line number Sidebar
"Gutter": true,

Spacing between the gutter and the text
Line number sidebar and text spacing
"Margin": 4,

Fold buttons is the triangles shown in the gutter to Fold regions of text
Whether to show Code collapse button
"Fold_buttons": true,

Hides the fold buttons unless the mouse is over the gutter
The code collapse button always appears, regardless of the mouse in the line number sidebar
"Fade_fold_buttons": true,

Columns in which to display vertical rulers
column displays a vertical ruler, filled with numbers in brackets, width by character
"Rulers": [],

Set to True to turn spell checking on by default
Whether to turn on spell checking
"Spell_check": false,

The number of spaces a tab is considered equal to
Tab TAB width
"Tab_size": 4,

Set to True to insert spaces if tab is pressed
When set to true, indents and when you encounter the TAB key use a space instead
"Translate_tabs_to_spaces": false,

If Translate_tabs_to_spaces is true, use_tab_stops'll make tab and
Backspace insert/delete up to the next TabStop
Translate_tabs_to_spaces set to True,tab and backspace delete/Insert action on tab width
Otherwise acting on a single space
"Use_tab_stops": true,

Set to False to disable detection of tabs vs. spaces on load
False to disable detection of tabs and spaces at load time
"Detect_indentation": true,

Calculates indentation automatically when pressing ENTER
Automatically aligns with tab stops when you press ENTER
"Auto_indent": true,

Makes auto indent a little smarter, e.g., by indenting the next line
After a if statement in C. Requires auto_indent to is enabled.
For the C language
"Smart_indent": false,

Adds whitespace up to the first open bracket when indenting. Requires
Auto_indent to is enabled.
Need to enable auto_indent to insert spaces when opening parentheses for the first time? (No test results ...) )
"Indent_to_bracket": true,

Trims white space added by Auto_indent when moving the caret off the
Line.
Shows whether the aligned white line is automatically filled according to the carriage return, tab, etc.
"Trim_automatic_white_space": true,

Disables horizontal scrolling if enabled.
May is set to true, False, or "auto", where it is is disabled for
source code, and otherwise enabled.
Whether to wrap the line automatically, if you choose Auto, you need double quotation marks
"Word_wrap": false,

Set to a value other than 0 to force wrapping at that column rather than the
Window width
Sets the width of the text area within the window
"Wrap_width": 0,

Set to False to prevent word wrapped lines from being indented to the same
Level
Prevent word wrapping that is 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 (such as a newly created file)
"Draw_centered": false,

Controls Auto Pairing of quotes, brackets etc
Auto-match quotes, brackets, etc.
"Auto_match_enabled": true,

Word list to use for spell checking
Word list path for spelling checker
"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 is determined by the ' Minimapborder ' key in
The color scheme
Whether the visual area portion of the code map is bordered by a border, the color of the border can be added to the Minimapborder key on the color scheme
"Draw_minimap_border": false,

If enabled, would highlight any line with a caret
Highlight the line 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, the end of the terminal closure mark
"Match_brackets": true,

Set to False if you ' d rather only highlight the brackets when the caret is
Next to one
When set to False, Match_brackets only takes effect when the cursor is at both ends of the parenthesis or the end-of-tail closure mark
"Match_brackets_content": true,

Set to False to not highlight square brackets. This is only takes effect if
Match_brackets is True
Whether to highlight parentheses, Match_brackets is True
"Match_brackets_square": false,

Set to False to not highlight curly brackets. This is only takes effect if
Match_brackets is True
Whether to highlight curly braces, match_brackets for True
"Match_brackets_braces": false,

Set to False to not highlight angle brackets. This is only takes effect if
Match_brackets is True
Whether to highlight the angle brackets, Match_brackets is valid for true
"Match_brackets_angle": false,

Enable visualization of the matching tag in HTML and XML
HTML and XML highlight the cursor at both ends of the label, affecting HTML, XML, CSS, etc.
"Match_tags": true,

Highlights other occurrences of the currently selected text
Full-text highlighting with the same character as the currently selected character
"Match_selection": true,

Additional spacing at the top of all line, in pixels
Sets the spacing to the top, in pixels, of each line, with the effect equal to leading
"Line_padding_top": 1,

Additional spacing at the bottom all line, in pixels
Sets the amount of space, in pixels, of each line to the bottom, with the effect of leading
"Line_padding_bottom": 1,

Set to False to disable scrolling past the end of the buffer.
On OS X, this value was overridden in the platform specific settings, so
You'll need-to-place the your user settings to override it.
When set to false, when scrolling to the bottom of the text, there is no buffer
"Scroll_past_end": true,

This controls how happens when pressing up
or last line.
On OS X, this value was overridden in the platform specific settings, so
You'll need-to-place the your user settings to override it.
Control what happens when you go up or down to the first or last line (you don't know or try)
"Move_to_limit_on_up_down": false,

Set to ' none ' 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, the actual result is a white dot (a single dot) or a white horizontal line (the width of the tab set by the Tab_size), which you can see in the selected state.
When set to none, these dots and lines are not displayed under any circumstances
When set to selection, only points and lines in the selected state are displayed
When set to all, it is always displayed
"Draw_white_space": "Selection",

Set to False to turn off the indentation guides.
The color and width of the indent guides may is customized by editing
The corresponding tmTheme file, and specifying the Colors "guide",
"Activeguide" and "Stackguide"
Whether the the line is displayed on the tab stop, the color can be set in the theme file (guide,activeguide,stackguide)
"Draw_indent_guides": true,

Controls How the Indent guides is drawn, valid options are
"Draw_normal" and "draw_active". Draw_active'll draw the indent
Guides containing the caret in a different color.
tab stops on the the line, Draw_normal is always displayed, draw_active to show 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 true, the extra space after each line is deleted when the file is saved
"Trim_trailing_white_space_on_save": false,

Set to true to ensure the last line of the file ends in a newline
Character when saving
True to save the file with the cursor changing one line at the end of the file
"Ensure_newline_at_eof_on_save": false,

Set to True to automatically save files when switching to a different file
or application
Switch to another file tag or click Other non-software area, the file is saved automatically
"Save_on_focus_lost": false,

The encoding to use when the encoding can ' t is determined automatically.
ASCII, UTF-8 and UTF-16 encodings'll be automatically detected.
ASCII, UTF-8, and UTF-16 are automatically detected when encoding is not automatically detected during encoding
"Fallback_encoding": "Western (Windows 1252)",

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 would be
Ignored, and the file is saved with the encoding it is opened
With.
Default encoding format
"Default_encoding": "Utf-8″,

Files containing null bytes is opened as hexadecimal by default
Files that contain empty bytes are opened by default to hexadecimal
"Enable_hexadecimal_encoding": true,

Determines what character (s) is used to terminate each line in new files.
Valid values is ' system ' (whatever the OS uses), ' Windows ' (CRLF) and
' Unix ' (LF only).
What character to use as Terminator at the end of each line
"Default_line_ending": "System",

When enabled, pressing TAB would insert the best matching completion.
When disabled, TAB would only trigger snippets or insert a tab.
Shift+tab can used to insert a explicit tab when Tab_completion is
Enabled.
When set to Enabled, pressing tab between a string inserts a tab character
When set to True, pressing TAB fills the code automatically according to the front and back environment
"Tab_completion": true,

Enable auto complete to being triggered automatically when typing.
Code hints
"Auto_complete": true,

The maximum file size where auto complete would be automatically triggered.
Size limit for code hints
"Auto_complete_size_limit": 4194304,

The delay, in MS, before the Auto complete window was shown after typing
Code hint delay display
"Auto_complete_delay": 50,

Controls What scopes auto complete'll be triggered in
Control range for Code hints
"Auto_complete_selector": "Source–comment",

Additional situations to trigger auto complete
Other scenarios that trigger code hints
"Auto_complete_triggers": [{"selector": "text.html", "Characters": "<"}],

By default, auto complete would commit the current completion on enter.
This setting can is used to make it all on tab instead.
Completing on tab is generally a superior option, as it removes
Ambiguity between committing the completion and inserting a newline.
When set to False, the code that selects the hint can be output by a carriage return or click, but when True is not output, it will be wrapped directly.
"Auto_complete_commit_on_tab": false,

Controls If auto complete was shown when snippet fields was active.
Only relevant if Auto_complete_commit_on_tab is true.
Auto_complete_commit_on_tab must be true to control the activity of code hints (not understood ...). )
"Auto_complete_with_fields": false,

By default, Shift+tab would only unindent if the selection spans
Multiple lines. When pressing Shift+tab at the other times, it ' ll insert a
tab CHARACTER–THIS allows tabs to being inserted when Tab_completion is
Enabled. Set Shift+tab always unindent, instead of
inserting tabs.
Set to False, use SHIFT + TAB to always insert tabs
"Shift_tab_unindent": true,

If true, the selected text would be copied to the find panel when it ' s
Shown.
On OS X, this value was overridden in the platform specific settings, so
You'll need-to-place the your user settings to override it.
The selected text is automatically copied to the text box in the Find panel when you press CTRL + F
"Find_selected_text": true,

//
User Interface Settings
//

The theme controls the look of Sublime Text ' s UI (buttons, tabs, scroll bars, etc)
Topics for Data\packages\theme–default\default.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
Speed of scrolling
"Scroll_speed": 1.0,

Controls side bar Animation when expanding or collapsing folders
Left Sidebar folder animation
"Tree_animation_enabled": true,
The Close button of the tab page
"Show_tab_close_buttons": true,

OS X 10.7 Only:set to True to disable Lion style full screen support.
Sublime Text must is 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 displayed by default, enabled for auto-hide display
"Overlay_scroll_bars": "System",

//
Application Behavior Settings
//

Exiting the application with hot_exit enabled would cause it to close
immediately without prompting. Unsaved modifications and open files would
Be preserved and restored when next starting.
//
Closing a window with an associated project would also close the window
Without prompting, preserving unsaved changes in the workspace file
Alongside the project.
Hot eject feature! Exit without prompting to save the file, but exit directly
The next time you open the software, the file will remain in the state before the exit, the content is not saved, 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 would have the no effect if Hot_exit is
True
The software uses the final settings to open the file, Hot_exit is true when there is no effect
"Remember_open_files": true,

OS X only:when files is opened from finder, or by dragging onto the
Dock icon, this controls if a new window was 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 was always enabled on OS X,
Changing it here won ' t modify the behavior.
For OS X
"Close_windows_when_empty": true,
Which files will be displayed on the sidebar
//Folder_exclude_patterns and File_exclude_patterns control which files
//IS Listed in folders on the side bar. These can also is 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 would still show up on the side bar, but won ' t be included 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 the This list,
A restart is required if the package contains plugins.
Delete the plugin you want to ignore, need to restart
"Ignored_packages": ["Vintage"]
}

Citation: http://linux.cn/article-799-1.html

Sublime Text 2 Configuration Manual

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.