【发布时间】:2015-12-13 19:15:04
【问题描述】:
说我的代码是这样的:
datatype type_name =
| a of ()
| b of ()
... // more
是否可以在每次按 Tab 时生成 | ${place_holder} of () 对?
我现在的sn-p是:
<snippet>
<content><![CDATA[
datatype ${1:type_name} =
| ${2} of (${3})
${4}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>dat</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.ats</scope>
</snippet>
但是如您所见,用户第四次点击标签时,我无法生成另一个 | of () 对。
【问题讨论】:
-
为什么不将
| ${1} of (${2})分配给键盘快捷键?
标签: sublimetext2 sublimetext3 sublimetext sublime-text-plugin