sublime text 3相关配置

一、主题配置—-Boxy Monokai.tmTheme配置步骤

1.先安装 Package Control:
a.ctrl + shift + p 或 cmd + shift + p
b.查找 Package Control: Install Package
c.搜索Boxy主题安装
2.主题配置:
a.Preferences -> Settings – User 粘贴以下内容,重启即可

{
    "color_scheme": "Packages/Boxy Theme/schemes/Boxy Monokai.tmTheme",
    "font_size": 11,
    "ignored_packages":
    [
        "Vintage"
    ],
    "line_padding_top": 3,
    "show_encoding": true,
    "show_line_endings": true,
    "theme": "Boxy Monokai.sublime-theme",
    "theme_accent_tangerine": true,
    "theme_autocomplete_item_selected_colored": true,
    "theme_bar_margin_top_sm": true,
    "theme_dropdown_atomized": true,
    "theme_find_panel_close_hidden": true,
    "theme_icon_button_highlighted": true,
    "theme_panel_switcher_atomized": true,
    "theme_quick_panel_item_selected_colored": true,
    "theme_quick_panel_size_md": true,
    "theme_scrollbar_colored": true,
    "theme_scrollbar_line": true,
    "theme_sidebar_close_always_visible": true,
    "theme_sidebar_folder_atomized": true,
    "theme_statusbar_size_md": true,
    "theme_tab_close_always_visible": true,
    "theme_tab_selected_overlined": true,
    "theme_tab_size_md": true
}

二、其它东西配置:

[
    // 侧栏伸缩快捷键
    {"keys": ["f1"],"command": "toggle_side_bar"},

    // sublime直接打开浏览器
    {
        "keys": ["ctrl+shift+z"],
        "command": "side_bar_files_open_with",
        "args": {
            "application": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
            "extensions": ".*",
            "paths": []
        }
    },

    // 全面查找
    {"keys":["ctrl+alt+g"], "command": "show_panel", "args": {"panel": "find_in_files"} },


    // JsFormat
    {
        "keys": ["ctrl+shift+f"], "command": "js_format",
        "context": [{"key": "selector", "operator": "equal", "operand": "source.js,source.json"}]
    },

    // Aligment
    { "keys": ["ctrl+shift+c"], "command": "alignment" }
]

三、某些插件功能及用法

1. Emmet
安装Emmet后,可以输入少量代码后摁Tab键,系统自动补全代码。
这里写图片描述
2.AutoFileName
引入文件地址时非常好用,能自动弹出目录结构。
3.JsFormat
JS代码格式化插件。默认快捷键为(Ctrl+Alt+F),自定义快捷在上面配置里。
4.SidebarEnhancements
增强文件右键选项功能。
5.Alignment
对定义的变量进行智能对齐,一般是“=”号对齐,默认的快捷键是Ctrl+Alt+A,但这个热键和QQ截屏的热键冲突不能使用,需要自己重新设置,自定义快捷在上面配置里。
6.ConvertToUTF8
通过本插件,您可以编辑并保存目前编码不被 Sublime Text 支持的文件,特别是中日韩用户使用的 GB2312,GBK,BIG5,EUC-KR,EUC-JP 等。可以通过 File→Set File Encoding to 菜单对文件编码进行手工转换。例如,您可以打开一个 UTF-8 编码的文件,指定保存为 GBK,反之亦然。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值