create a snippet:

<snippet> <content><![CDATA[ <div class=""> ${1} </div> ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>dc</tabTrigger> <!-- Optional: Set a scope to limit where the snippet will trigger --> <!-- <scope>source.html</scope>--> </snippet> 

when called, the closing div leaves right by 2 tab. How to format the output? thank

  • I inserted your code - my closing div displayed at the beginning of the line when I called it. I suspect that after the opening diva there was a tab sign, which was not copied here. - Sasha Chernykh

1 answer 1

When creating a snippet, avoid extra spaces and tabs. This is all reflected in the formatting of the output code. That is, in this case, create first like this:

 <div class=""></div> 

and then put the closing div in position