Visual Studio Code Snippets Builder

Enhance arcgis-js-vscode-snippets extension

Custom Snippet

Prefix *

Prefix
Defines one or more trigger words that display the snippet in IntelliSense. Substring matching is performed on prefixes, so in this case, "fc" could match "for-const".

Recomendations
Good prefixes are short and easy to remember, so you can include the name of the method, class or property. Avoid using just acronyms.

Name *

Name
Short description that follows the prefix.

Recomendations
To differentiate from other IntelliSense we recommend you to include (Esri JSAPI)

Description

Description
It is an optional description of the snippet displayed by IntelliSense.

Body *

Description
Code snippet that will be place in the file. Newlines and embedded tabs will be formatted according to the context in which the snippet is inserted.

Recomendations
Placeholders (${1:foo}) and Choices (${1|value1,value2}) when possible.

How snippets works

VS Code documentation: Snippets syntax

Custom snippet code:

Do you think more users would benefit from this snippet?
If so, please consider contributing to the official extension:

Important
Before submiting your custom snippet proposal, please read the Convention checklist (T.B.D)

Submit proposal

Fork me on GitHub