Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables #16

Open
seanonthenet opened this issue Sep 23, 2020 · 7 comments
Open

Variables #16

seanonthenet opened this issue Sep 23, 2020 · 7 comments

Comments

@seanonthenet
Copy link

This is awesome... does it support variables ($1, $2...) like regular snippets?

@devon2018
Copy link
Owner

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.

@Nickyg001
Copy link

@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

@HZSamir
Copy link

HZSamir commented Nov 11, 2020

This one feature is the one thing missing for this extension to be perfect.

@S-n-d
Copy link

S-n-d commented Aug 24, 2021

Any news on this? It would indeed make this extension perfect!

Repository owner deleted a comment from zardoy Jan 3, 2022
@zhyyyq
Copy link

zhyyyq commented Mar 1, 2022

lol i find out it doesn't support the variable

@transcendr
Copy link

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

@verikono
Copy link

variables are a dealbreaker for me and thats really annoying because this is fantastic work! :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants