Sublime text 3:在不克隆单词的情况下使用相同的制表位两次

Sublime text 3: Using the same tab stop twice without cloning the word

我目前使用同一个制表位两次,以便 select 两个链接在一起的元素。如果不需要这两个控件的功能,则两者都不需要。

就是说,制表位确实 select 它应该的两个区域,“$1:{ }”,但是当使用时 - 它在两个位置显示 "mw_hide"。

我想做的是使用制表位,但保留两个词。

因此当 selected 制表位时它应该显示 "mw_hide" 和 "isMobleEle",而不是在两个地方都显示 "mw_hide"。

在任何人之前 - 不幸的是,在这种情况下将它们都命名为 "mw_hide" 不是一个选项。

综上所述,有人知道这是否真的可行吗?

(代码如下)

<snippet>
  <content><![CDATA[  <!-- ********** FW - Full Hero ********** -->
  <div class="isMobile ${1:mw_hide}">
      <!-- Place A -->
      <div class="grid1">
            <a href="URL" coremet="This${2:StayMobile}">
                <img src="//img/setA/${1:isMobleEle}" alt="${3:AltTextHere}" />
            </a>
      </div>
  </div>]]></content>
    <!-- Optional: Tab trigger to activate the snippet -->
    <tabTrigger>MOB</tabTrigger>
    <!-- Optional: Scope the tab trigger will be active in -->
</snippet>

没有,this is not possible. Instead, use different field id numbers ("tab stops"). If two different fields have the same identifier number, anything typed in that field will be identical in both places, unless you're altering it with a substitution