Skip to content

Improved HTML snippet expansion  #1518

Open
@jlconlin

Description

@jlconlin

I'd like to improve the expansion of the HTML snippets. Most HTML snippets only have a single tab stop and it is between an opening and closing tag. To use one of these snippets, I have to invoke the snippet, press <tab>, enter some text, press esc, move past the closing tag, enter insert mode and continue. This could be made much easier by adding one more tab stop.

For example (there are many like this) the li snippet is defined like this:

snippet li
	<li>${0}</li>

I'd like to change it (and others) to look like this:

snippet li
	<li>${1}</li>${0}

I'd like to make a change to html.snippet, but wanted to start a conversation about this before I go and make some changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions