snippet
snippet copied to clipboard
Variables
This is awesome... does it support variables ($1, $2...) like regular snippets?
Hi @Spark3000
Unfortunately not, It's something that i've looked into but not been able to figure out.
Will let you know if anything changes.
@devon2018 I believe that if your extension stored parameters using the same syntax as the original VSCODE, it would also be able to implement the use of for tab stops variables.
///////SNIPPETS Devon Ray
{
"created": "2020-10-25T10:46:18.187Z",
"name": "CUSTOM_NAME_SNIPPET",
"tags": [
"TAGS_NAME"
],
"content": "CODEX INSERT - $1......",
"contentType": "php"
}
///////SNIPPETS vscode ORIGINAL
"CUSTOM_NAME_SNIPPET": {
"prefix": "TRIGGER_NAME",
"body": [
"CODEX INSERT - $1 (VARIABLE for tab stops)
$2, $3",
],
"description": "DESCRIPTION SNIPPETS"
}
DIFFERENT:
"content" vs "body" :FOR CODEX "name": vs : : FOR NAME SNIPPETS
This one feature is the one thing missing for this extension to be perfect.
Any news on this? It would indeed make this extension perfect!
lol i find out it doesn't support the variable
Love the editor, hate that you can use variables. Can't you parse the snippet from selection or from the editor to and from a proper vscode snippet file? There's one called "Snippet Creator" by Wware Consulting that does this. Perhaps there's something to see there:
https://github.com/abulka/vscode-snippet-creator
variables are a dealbreaker for me and thats really annoying because this is fantastic work! :(