【发布时间】:2018-06-25 11:57:27
【问题描述】:
我想构建一个工具来帮助我在项目中更快地完成工作。为此,我想使用 sn-p 功能。 是否可以知道是否在字符串引号或常规 javascript 代码中使用了 sn-p 前缀,例如:
'prefix + tab' (with quotes) -> outputs one thing
prefix + tab (no quotes) -> outputs different thing.
这样:
'bgc + tab' -> 'background-color: $1'
prefix + tab -> backgroundColor: $1
我希望我的问题有意义:D
【问题讨论】:
标签: javascript visual-studio-code code-snippets jss