Sublime Text 3全接触

Sublime Text 3.0 用户配置

2017-08-27  本文已影响173人  ALOLONGHUN

配置文件打开方式

菜单栏 —> Preferences —> Settings-User

常用配置

{
    // 设置主题文件
    "color_scheme": "Packages/Color Scheme – Default/Monokai.tmTheme",

    // 设置字体和大小
    "font_face": "Consolas",
    "font_size": 12,

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

    // 是否显示行号
    "line_numbers": true,

    // 是否显示行号边栏
    "gutter": true,

    // 行号边栏和文字的间距
    "margin": 4,

    // 是否显示代码折叠按钮
    "fold_buttons": true,

    // 不管鼠标在不在行号边栏,代码折叠按钮一直显示
    "fade_fold_buttons": true,

    // 是否打开拼写检查
    "spell_check": false,

    // Tab键制表符宽度
    "tab_size": 4,

    // 设为true时,缩进和遇到Tab键时使用空格替代
    "translate_tabs_to_spaces": false,

    // 设置行间距
    "line_padding_top": 1,
    "line_padding_bottom": 1, 

    // 按回车时,自动与制表位对齐
    "auto_indent": true,

    // 显示对齐的白线是否根据回车、tab等操作自动填补
    "trim_automatic_white_space": true,

    // 是否自动换行,如果选auto,需要加双引号
    "word_wrap": false,

    // 自动匹配引号,括号等
    "auto_match_enabled": true,

    // 代码地图的可视区域部分是否加上边框,边框的颜色可在配色方案上加入minimapBorder键
    "draw_minimap_border": false,

    // 突出显示当前光标所在的行
    "highlight_line": false,

    // html和xml下突出显示光标所在标签的两端,影响HTML、XML、CSS等
    "match_tags": true,

    // 全文突出显示和当前选中字符相同的字符
    "match_selection": true,

    // 设置每一行到顶部,以像素为单位的间距,效果相当于行距
    "line_padding_top": 1,

    // 设置每一行到底部,以像素为单位的间距,效果相当于行距
    "line_padding_bottom": 1,

    // 设置为false时,滚动到文本的最下方时,没有缓冲区
    "scroll_past_end": true,

    // 为true时,保存文件时会删除每行结束后多余的空格
    "trim_trailing_white_space_on_save": false,

    // 失去焦点,文件自动保存
    "save_on_focus_lost": false,

    // 编码时不能自动检测编码时,将自动检测ASCII, UTF-8 和 UTF-16
    "fallback_encoding": "Western (Windows 1252)",

    // 默认编码格式
    "default_encoding": "UTF-8",

    // 设置为enabled时,在一个字符串间按Tab将插入一个制表符
    // 设置为true时,按Tab会根据前后环境进行代码自动匹配填补
    "tab_completion": true,

    // 代码提示
    "auto_complete": true,

    // 代码提示延迟显示
    "auto_complete_delay": 50,

    // 设置为false,使用Shift + tab总是插入制表符
    "shift_tab_unindent": true,

    // 选中的文本按Ctrl + f时,自动复制到查找面板的文本框里
    "find_selected_text": true,

    // 标签页的关闭按钮
    "show_tab_close_buttons": true,

    // 热退出功能!退出时不会提示是否保存文件,而是直接退出
    // 下次打开软件时,文件保持退出前的状态,没来得及保存的内容都在,但并没有真实的写在原文件里
    "hot_exit": true,

    // 忽视某些sublime默认的插件,需要重启,去掉Vinage开启vim模式
    "ignored_packages": ["Vintage"]
}

我的配置

{
    "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
    "fade_fold_buttons": false,
    "font_face": "Consolas",
    "font_size": 14.0,
    "highlight_line": true,
    "highlight_modified_tabs": true,
    "save_on_focus_lost": true,
    "tab_size": 4,
    "trim_trailing_white_space_on_save": true,
    "update_check": false,
    "word_wrap": true,
    "scroll_past_end": true,
    "line_padding_top": 1,
    "line_padding_bottom": 1,
    "shift_tab_unindent": true
}
上一篇 下一篇

猜你喜欢

热点阅读