sublime text的使用

16 Sep 2013, by

快捷键

必要安装

packagecontrol

设置缩进参数

{
    "tab_size": 2,
    "translate_tabs_to_spaces": true
}
{
        "auto_complete_commit_on_tab": true,
        "auto_complete": true,
        "default_encoding": "UTF-8",
        "font_size": 15.0,
        "highlight_line": true,
        "ignored_packages":
        [
                "Vintage",
                "SublimeCodeIntel"
        ],
        "remember_open_files": true,
        "syntax_sensitive": true,
        "tab_size": 2,
        "translate_tabs_to_spaces": true,
        // 突出显示当前光标所在的行
        "highlight_line": true,
        // 为true时,保存文件时会删除每行结束后多余的空格
        "trim_trailing_white_space_on_save": true
}

在终端打开sublime text2

sudo ln -s "/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl" /usr/bin/subl