美文网首页
sublime配置

sublime配置

作者: llpy | 来源:发表于2017-04-19 08:18 被阅读25次

    markdown

    安装package:

    MarkdownEditing
    MarkdownExtended 代码语法高亮
    Monokai Extended (syntax highlighting for Markdown, LESS, HTML, Handlebars and more)

    在Preference->Package Settings->Markdown Editing->Markdown GEM Setting-User
    和Preference->Package Settings->Markdown Editing->Markdown (Standard) Setting-User

    设置主题为MarkdownExtended

    {
        "color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme"
    }
    

    react

    安装package:

    babel-sublime jsx语法高亮
    sublimeLinter-jsxhint jsx语法检查

    修改emment
    使用super+e触发 emmet

    打开 preferences -> Key bindings - Users,把下面代码复制到[]内部。

     {
          "keys": [
            "super+e"
          ],
          "args": {
            "action": "expand_abbreviation"
          },
          "command": "run_emmet_action",
          "context": [{
            "key": "emmet_action_enabled.expand_abbreviation"
          }]
        },
        {
          "keys": ["tab"],
          "command": "expand_abbreviation_by_tab",
          "context": [{
            "operand": "source.js",
            "operator": "equal",
            "match_all": true,
            "key": "selector"
          }, {
            "key": "preceding_text",
            "operator": "regex_contains",
            "operand": "(\\b(a\\b|div|span|p\\b|button)(\\.\\w*|>\\w*)?([^}]*?}$)?)",
            "match_all": true
          }, {
            "key": "selection_empty",
            "operator": "equal",
            "operand": true,
            "match_all": true
          }]
        }
    

    相关文章

      网友评论

          本文标题:sublime配置

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