我认为,他的意思是您需要更改范围 expand_abbreviation_by_tab
. 。请打开 Default (Windows/Linux/OSX).sublime-keymap
, , 搜索 expand_abbreviation_by_tab
, , 添加 source.js
在操作数列表中。它使其在JavaScript文件中受到影响。
"command": "expand_abbreviation_by_tab",
"context": [
{
"operand": "source.js, source.css, source.sass, source.less, source.scss, source.stylus, text.xml, text.html - source, text.haml, text.scala.html, source string",
"operator": "equal",
"match_all": true,
"key": "selector"
},