Sublime Text 3: how to bind a shortcut to a specific file extension?

隐身守侯 提交于 2019-12-04 16:11:47

Apparently you can try something like this:

[ { "keys": ["ctrl+x", "ctrl+i"], "command": "insert_snippet", "args": {"name": "Packages/User/mysnippet.sublime-snippet"}, "context": [ {"key": "selector", "operator": "equal", "operand": "text.tex.latex"} ] } ]

Where you'ld replace the first 3 lines by what you want, and text.tex.latex by the scope you want (source.js and text.html.basic in your case).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!