美文网首页
sublime配置

sublime配置

作者: aiyolo | 来源:发表于2017-06-07 19:45 被阅读18次
    import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
    

    http://www.imjeff.cn/blog/62/

    • 字体安装
      Preferences->settings-user(提前安装Monokai Extended)
    {
     "color_scheme": "Packages/Monokai Extended/Monokai Extended Bright.tmTheme",
     "font_face": "Comic Sans MS",
     "font_size": 11,
     "ignored_packages":
     [
     "Vintage"
     ]
    }
    

    上面不是等宽字体,等宽字体:Courier New

    • 括号高亮(bracket Highlighter)
      pci 安装bracket Highlighter
      Preferences -> package settings -> Bracket Highlighter -> Bracket Settings – User
    {
        "bracket_styles": {
            "default": {
                "icon": "dot",
                // "color": "entity.name.class",
                "color": "brackethighlighter.default",
                "style": "highlight"
            },
    
            "unmatched": {
                "icon": "question",
                "color": "brackethighlighter.unmatched",
                "style": "highlight"
            },
            "curly": {
                "icon": "curly_bracket",
                "color": "brackethighlighter.curly",
                "style": "highlight"
            },
            "round": {
                "icon": "round_bracket",
                "color": "brackethighlighter.round",
                "style": "highlight"
            },
            "square": {
                "icon": "square_bracket",
                "color": "brackethighlighter.square",
                "style": "highlight"
            },
            "angle": {
                "icon": "angle_bracket",
                "color": "brackethighlighter.angle",
                "style": "highlight"
            },
            "tag": {
                "icon": "tag",
                "color": "brackethighlighter.tag",
                "style": "highlight"
            },
            "single_quote": {
                "icon": "single_quote",
                "color": "brackethighlighter.quote",
                "style": "highlight"
            },
            "double_quote": {
                "icon": "double_quote",
                "color": "brackethighlighter.quote",
                "style": "highlight"
            },
            "regex": {
                "icon": "regex",
                "color": "brackethighlighter.quote",
                "style": "outline"
            }
        }
    }
    

    来源: https://www.douban.com/note/474507021/

    • markdown的两个好看的插件
      1.markdown extended
      2.monakai extended
    • 快捷键设置
    [
     { "keys": ["f6"], "command": "markdown_preview", "args": { "target": "browser"} }
    ]
    

    括号内换行 http://ruby-china.org/topics/4824

    [
        {"keys": ["enter"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
            [
                { "key": "following_text", "operator": "regex_contains", "operand": "^[)\\]\\>\\'\\\"\\ %>\\}\\;\\,]", "match_all": true },
                { "key": "preceding_text", "operator": "not_regex_match", "operand": "^.*\\{$", "match_all": true  },
                { "key": "auto_complete_visible", "operator": "equal", "operand": false }
            ]
        }
    ]
    

    插件清单

    • sidebarenhancement
    • deleteblanklines
    
    // "color_scheme": "Packages/Colorcoder/Twilight (Colorcoded).tmTheme",
     // "font_face": "Courier New",
     // "font_size": 14,
     // "ignored_packages":
     // [
     //  "Vintage"
     // ],
     // "original_color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
     // "theme": "Seti_orig.sublime-theme"
    

    2016-11-04

    相关文章

      网友评论

          本文标题:sublime配置

          本文链接:https://www.haomeiwen.com/subject/dqpafxtx.html