1

I'm trying to create my own snippet for Sublime Text 3. Here it is:

<snippet>
    <content><![CDATA[
// begin $1
.$1$2
// end $1
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>di</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.pug, text.pug</scope>
</snippet>

but it works only at the last row of document. what's wrong?

Graham
  • 7,431
  • 18
  • 59
  • 84
someserj
  • 47
  • 7
  • Seems to work find here. What package are you using to provide the Pug syntax that you're using? – OdatNurd Jan 22 '18 at 02:03
  • @OdatNurd I'm using https://github.com/davidrios/pug-tmbundle – someserj Jan 22 '18 at 07:21
  • My best suggestion would be to ask you if, when this is happening, you happen to have used some other snippet just before? Or put another way, when it doesn't work does the status line in the window say anything about `Field X of Y`? – OdatNurd Jan 23 '18 at 02:17
  • @OdatNurd no I don't use any other snippet, just open .pug file, click at the line between existing lines, Enter, write "di", Tab and nothing happens. Status bar doesn't show anything too – someserj Jan 23 '18 at 08:28

0 Answers0