Sublime Text 3 配置文件

Sublime Text 3 配置文件

// 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
    //主题文件
    "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",

// 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.
    //字体样式、大小
    "font_face": "",
    "font_size": 10,

// Valid options are "no_bold", "no_italic", "no_antialias", "gray_antialias",
    // "subpixel_antialias", "no_round" (OS X only) and "directwrite" (Windows only)
    // 字体选项:no_bold不显示粗体字,no_italic不显示斜体字,no_antialias和no_antialias关闭反锯齿
    // subpixel_antialias和no_round是OS X系统独有的
    // directwrite是Windows系统独有的
    "font_options": [],

// Characters that are considered to separate words
    // 在文字上双击会全选当前的内容,如果里面出现以下字符,就会被截断
    "word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?",

// Set to false to prevent line numbers being drawn in the gutter
    // 是否显示行号
    "line_numbers": true,

// Set to false to hide the gutter altogether
    // 是否显示行号边栏
    "gutter": true,

// Spacing between the gutter and the text
    // 行号边栏和文字的间距
    "margin": 4,

// Fold buttons are the triangles shown in the gutter to fold regions of text
    // 是否显示代码折叠按钮
    "fold_buttons": true,

// Hides the fold buttons unless the mouse is over the gutter
    // 不管鼠标在不在行号边栏,代码折叠按钮一直显示
    "fade_fold_buttons": true,

// Columns in which to display vertical rulers
    //列显示垂直标尺,在中括号里填入数字,宽度按字符计算
    "rulers": [],

// Set to true to turn spell checking on by default
    // 是否打开拼写检查
    "spell_check": false,

// The number of spaces a tab is considered equal to
    // Tab键制表符宽度
    "tab_size": 4,

// Set to true to insert spaces when tab is pressed
    // 设为true时,缩进和遇到Tab键时使用空格替代
    "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设置为true,Tab和Backspace的删除/插入作用于制表符宽度
    // 否则作用于单个空格
    "use_tab_stops": true,

// Set to false to disable detection of tabs vs. spaces on load
    // false时禁止在载入的时候检测制表符和空格
    "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.
    //针对C语言的
    "smart_indent": true,

// Adds whitespace up to the first open bracket when indenting. Requires
    // auto_indent to be enabled.
    // 需要启用auto_indent,第一次打开括号缩进时插入空格?(没测试出来效果…)
    "indent_to_bracket": false,

// Trims white space added by auto_indent when moving the caret off the
    // line.
    // 显示对齐的白线是否根据回车、tab等操作自动填补
    "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.
    // 是否自动换行,如果选auto,需要加双引号
    "word_wrap": "auto",

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/18459.html