Sublime Text使用心得

安装包(Packages)

使用快捷键Ctrl + Alt + P打开命令浮动窗,输入install,然后选中第一项回车,在稍后的输入栏中输入想要安装的插件名称,安装即可。

格式化代码

快捷键:Ctrl + Alt + F

运行Html

打开【Preferences】-【Key Bindings -- User】菜单,在打开的文件中输入如下代码:

//chorme运行
    {
        "keys": ["ctrl+f5"],//快捷键
        "command": "side_bar_files_open_with",
        "args": {
            "paths": [],
            "application": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",//浏览器安装路径
            "extensions": ".html"
        }
    }

更换一款帅气的皮肤

预览图:

皮肤名称:Cobalt2
配置信息(在【Preferences】-【Settings - User】中加入代码):

"bold_folder_labels": true,
    "caret_extra_bottom": 0,
    "caret_extra_top": 0,
    "caret_extra_width": 0,
    "caret_style": "phase",
    "color_scheme": "Packages/Theme - Cobalt2/cobalt2.tmTheme",
    "e4x": true,
    "font_face": "Microsoft Yahei Mono",
    "font_size": 12,
    "format_on_save": true,
    "highlight_line": true,
    "highlight_modified_tabs": true,
    "indent_guide_options":
    [
        "draw_normal",
        "draw_active"
    ],
    "line_padding_bottom": 1,
    "line_padding_top": 1,
    "overlay_scroll_bars": "enabled",
    "piatto_folder_icons": true,
    "sidebar_font_big": true,
    "sidebar_large": true,
    "sidebar_medium": true,
    "sidebar_xlarge": true,
    "theme": "Cobalt2.sublime-theme",
    "wide_caret": true

在状态栏显示文件大小

安装包:【Status Bar File Size】

未完待续~~~

你可能感兴趣的:(sublime-text-3,sublime-text)