我想自定义快捷方式,但仅将它们应用于特定扩展。
例如,
"jump to matching bracket" -> works in JS files -> customly bound to ctrl+m,
"go to matching tag pair" (emmet) -> works in HTML files -> I would like to ctrl+m also here, but doesn't work (ST3 understand "jump to matching bracket" which doesn't apply here).
我想知道专门指定特定扩展的快捷方式是否可以解决问题?
显然你可以尝试这样的事情:
[
{ "keys": ["ctrl+x", "ctrl+i"],
"command": "insert_snippet",
"args": {"name": "Packages/User/mysnippet.sublime-snippet"},
"context": [ {"key": "selector", "operator": "equal", "operand": "text.tex.latex"} ]
}
]
您可以将前 3 行替换为您想要的内容,并且text.tex.latex
根据您想要的范围(在您的情况下为 source.js 和 text.html.basic )。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)