Skip to content

Add transformations to snippets variables #6920

Closed
@zpdDG4gta8XKpMCd

Description

@zpdDG4gta8XKpMCd

TextMate snippets page says:

7.7 Transformations

There are situations where we want our placeholder text mirrored but with slight changes or where we want some text to appear depending on the value/presence of a placeholder.

We can accomplish this by doing a regular expression substitution on the placeholder text (when mirroring it). The syntax for this is: ${«tab stop»/«regexp»/«format»/«options»}.

It looks like transformations are not supported in VS Code. Would be a great addition.

Activity

self-assigned this
on May 27, 2016
added this to the Backlog milestone on May 30, 2016
changed the title add transformations to snippets [snippets] add transformations to snippets on May 30, 2016
self-assigned this
on Dec 27, 2016
sunabozu

sunabozu commented on Mar 17, 2017

@sunabozu

Are there any news about it?

mpearon

mpearon commented on May 12, 2017

@mpearon

Has there been any headway made on this issue, or has it been prioritized?

jhickson

jhickson commented on May 18, 2017

@jhickson

This would be great to have - is it likely to be implemented soon?

23 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Add transformations to snippets variables · Issue #6920 · microsoft/vscode