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

Add provision to apply functions to variables within snippets #17395

Closed
thekalinga opened this issue Dec 16, 2016 · 3 comments
Closed

Add provision to apply functions to variables within snippets #17395

thekalinga opened this issue Dec 16, 2016 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality snippets

Comments

@thekalinga
Copy link

thekalinga commented Dec 16, 2016

  • VSCode Version:

Version 1.9.0-insider
Commit 32222e2
Date 2016-12-16T07:18:07.856Z
Shell 1.4.6
Renderer 53.0.2785.143
Node 6.5.0

  • OS Version:

Ubuntu 14.04

Steps to Reproduce:

Currently snippets does not have any way to apply functions to the variable being edited.

For eg., if the user selects ng2-component template using this plugin, user needs to enter the same name in multiple places

  1. in lowercase for the selector name
  2. in Camelcase for the class name

If vscode supports applying functions to the template variables names, the extension developer can write functions to update the rest of the template using this the text captured within this variable

@kieferrm kieferrm added the feature-request Request for new features or functionality label Dec 16, 2016
@unional
Copy link

unional commented Dec 17, 2016

Besides function, I always want to use date string for today.
Should it be a separate request?

@thekalinga
Copy link
Author

If you have ability to write code, its trivial to get date.

This is the holy grail.

@jrieken
Copy link
Member

jrieken commented Jan 27, 2017

closing this as dupe of #6920

@jrieken jrieken closed this as completed Jan 27, 2017
@jrieken jrieken added the *duplicate Issue identified as a duplicate of another issue(s) label Jan 27, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality snippets
Projects
None yet
Development

No branches or pull requests

4 participants