-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Add transformations to snippets variables #6920
Comments
Are there any news about it? |
Has there been any headway made on this issue, or has it been prioritized? |
This would be great to have - is it likely to be implemented soon? |
Maybe... I am doing some snippet work this month, but not exclusively. We have enabled multi cursor support which I believe was the number 1 complained. Next could be nested snippets (invoke snippets when completing a snippet), choice support and transforms. |
Same request as others here. I would like a snippet to generate boilerplate for my React components, based off of the filename without the filename extension. Either need another variable for filename without file extension, or regular expressions to transform the filename. |
I, too, miss the feature to use the filename without the extension in a snippet. Perhaps you could add $TM_FILENAME_BASE as a workaround until this feature gets implemented? |
I would love this for creating go test files. For example, if I'm in a go package I have a created a snippet like the following in
which produces
However, if I'm in a file How do I accomplish this? I tried using I'd really like to have access to the "parent package" but being able to manipulate the current filename with knowledge of workspace root would probably be good enough. Will the fix mentioned in this issue support my use case (pretty common for go developers) and is there an ETA? :-) Thanks! |
fyi - I have just merged #33253 which is about snippet transformations for snippet variables. |
If have re-purposed this issue to be about snippet transformation for snippet variables. For transformations of snippet placeholders i have created #34683. Variable transformations will ship in September. |
TextMate snippets page says:
It looks like transformations are not supported in VS Code. Would be a great addition.
The text was updated successfully, but these errors were encountered: