这几天安装了sublime text2,了解到有插件后,安装了emmet,但是按照大部分帖子所说的emmet控制台调出的快捷键是ctrl+shift+enter,但是,尝试多个版本没有打开,过程中也认为可能是快捷键冲突引起,后经测试没有冲突~
一段时间苦苦没有解决方法,一天浏览看到一帖子
如何将Emmet安装到到 Sublime text 3?
其中有一段话说的是 输入代码后用快捷键ctrl+e,自己回到自己的sublime中一尝试,果然成功~
到emmet快键键默认设置中看到有如下代码
{
"keys": [
"ctrl+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.css, source.sass, source.less, source.scss, source.stylus, text.xml, text.html, text.haml, text.scala.html, source string",
"operator": "equal",
"match_all": true,
"key": "selector"
},
{
"operand": "text.html source.php, text.html source.js, storage.type.templatetag.django",
"operator": "not_equal",
"match_all": true,
"key": "selector"
},
{
"match_all": true,
"key": "selection_empty"
},
{
"operator": "equal",
"operand": false,
"match_all": true,
"key": "has_next_field"
},
{
"operator": "equal",
"operand": false,
"match_all": true,
"key": "setting.disable_tab_abbreviations"
},
{
"operand": false,
"operator": "equal",
"match_all": true,
"key": "auto_complete_visible"
},
{
"match_all": true,
"key": "is_abbreviation"
}
]
},
{
"keys": [
"tab"
],
"command": "expand_abbreviation_by_tab",
"context": [
{
"operand": "source.css, source.sass, source.less, source.scss, source.stylus, text.xml, text.html, text.haml, text.scala.html, source string",
"operator": "equal",
"match_all": true,
"key": "selector"
},
{
"operand": "text.html source.php, text.html source.js, storage.type.templatetag.django",
"operator": "not_equal",
"match_all": true,
"key": "selector"
},
{
"match_all": true,
"key": "selection_empty"
},
{
"operator": "equal",
"operand": false,
"match_all": true,
"key": "has_next_field"
},
{
"operator": "equal",
"operand": true,
"match_all": true,
"key": "auto_complete_visible"
},
{
"operator": "equal",
"operand": false,
"match_all": true,
"key": "setting.disable_tab_abbreviations_on_auto_complete"
},
{
"match_all": true,
"key": "is_abbreviation"
}
]
}
用ctrl+e或者tab目前可以简化一些输入了,但是尚有疑问,emmet快捷键改了?没有控制台了?