-2

For example, i want to enter with this input:

.classOne#idOne?customAttribute?customAttributeValue

And then, when hit Tab on keyboard I want get this output:

<div class="classOne" id="idOne" customAttribute="customAttributeValue"></div>

What are the {?} characters to make this input/output possible?

2 Answers2

1

The Emmet Docs can describe how to do it.

Input:

.classOne#idOne[customAttribute=customAttributeOne]

Output:

<div class="classOne" id="idOne" customAttribute="customAttributeOne"></div>
  • You can cite people, but if you're citing then you should include the relevant parts in quotes (prefixing lines in your answer with > formats them as quotes) and provide a link directly to the source, not just to their website – Nick is tired Jul 12 '19 at 10:43
0

You can put custom snippets in snippets.json

https://vscode.readthedocs.io/en/latest/editor/emmet/#using-custom-emmet-snippets