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

Snippet substitution as a placeholder is not selected #1132

Open
kipit opened this issue Mar 5, 2016 · 0 comments
Open

Snippet substitution as a placeholder is not selected #1132

kipit opened this issue Mar 5, 2016 · 0 comments

Comments

@kipit
Copy link

kipit commented Mar 5, 2016

If we use a variable substitution as a placeholder for another variable the placeholder is not selected. For example, a snippet transforming what we type on $1 to uppercase, and we want this transformation to be the placeholder for $2:

$1 => ${2:${1/(.)/\u$1/g}}

The strange thing is that the $2 placeholder get selected if we add something static at the end of the placeholder, eg, with an exclamation mark added:

$1 => ${2:${1/(.)/\u$1/g}!}

I’m using build 3103 on OSX.

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

No branches or pull requests

3 participants
@kipit @FichteFoll and others