mjmlio / vscode-mjml

MJML preview, lint, compile for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=attilabuti.vscode-mjml
MIT License
178 stars 24 forks source link

changed multiline snippets from $1 to $0 . #5

Closed Alexnortung closed 3 years ago

Alexnortung commented 4 years ago

I have changed multiline snippets that uses $1 or $2 as their last position to $0.

This is because when you use a snippet and want to use another one inside for example mjcolumn (snippet) then mjtext(snippet), then VS Code will not recognize that you are trying to use a snippet since you are filling one of the $i parts of the snippet. However when using $0 VS Code sees the snippet as finished and can now recognize other snippets.

This is something me and my coworkers has been frustrated over for a while and it would generally just feel better to use the snippets.