Sublime Text3 工具运用

来源:互联网 发布:java安装失败 卸载 编辑:程序博客网 时间:2024/06/08 07:23

用Sublime Text3 编辑js文件时,发现无法运用Tab键进行自动补全,需要用ctrl+e,于是百度寻求解决方案,发现如下代码。

粘贴至 按键绑定-用户 里即可。然后,ctrl+shift+p 选择禁用emmet,启动emmet,完成配置生效。


[{      "keys": ["tab"],       "command": "expand_abbreviation_by_tab",      // Extend Emmet to js & jsx      "context": [          {            "operand": "source.js",            "operator": "equal",             "match_all": true,             "key": "selector"          },          // run only if there's no selected text          {            "match_all": true,             "key": "selection_empty"          },          // don't work if completion popup is visible and you          // want to insert completion with Tab. If you want to          // expand Emmet with Tab even if popup is visible --           // remove this section          {            "operand": false,             "operator": "equal",             "match_all": true,             "key": "auto_complete_visible"          }        ]    }]


0 0
原创粉丝点击