sublime-text-plugin icon indicating copy to clipboard operation
sublime-text-plugin copied to clipboard

insert_final_tabstop setting is not there anymore after update?

Open Rainfall opened this issue 5 years ago • 1 comments

So when I type .somediv and hit tab it makes <div class="somediv">|</div> with cursor between tag open and close. After that I try to type and open my custom snippet like this <div class="somediv">tf|</div> and when I press 'tab' cursor just goes to the end of the div like this <div class="somediv">tf</div>| If I go back to my snippet abbreviate and press tab again it finally works - <div class="somediv"><?php the_field(|); ?></div>

As I understand in a previous version there was a setting called 'insert_final_tabstop' to prevent this, but now it's not there anymore.

Rainfall avatar Aug 30 '20 11:08 Rainfall

Just figured it out: it happens because ST automatically adds final tabstop if inserted snippet doesn’t contains $0 field. Will try to figure out how to properly start Emmet-generated snippets from 0 instead of 1

sergeche avatar Sep 19 '20 17:09 sergeche