-
How I can make the completed words to be all in uppercase? "sample": {
"prefix": "sample",
"body": [
"${1:param}",
"'${1/(.*)/${1:/upcase}/}'"
],
"description": "Sample demo"
}, But the second line on the body is not transforming to uppercase |
Beta Was this translation helpful? Give feedback.
Answered by
L3MON4D3
Mar 22, 2022
Replies: 1 comment 1 reply
-
That's not possible yet via parsed snippets :/ You can get this nonetheless by creating the snippet in lua: s("sample", fmt[[
{}
'{}'
]], {
i(1, "param"), l(l._1:upper())
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zer09
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's not possible yet via parsed snippets :/
You can get this nonetheless by creating the snippet in lua: