In my framework we are having a code structure like:
varname => ${VARNAME}
I am trying to use VSCode user snippet to make it working but unable to capitalize given varname!
https://code.visualstudio.com/updates/v1_25#_snippet-placeholder-transformations Tried this exact code but not working!!
Also tried already solved solutions also. But none of them working. VS Code: How to convert snippet placeholder to uppercase or lowercase?
When using variable transformations like TM_FILENAME, capitalize working. (https://code.visualstudio.com/docs/editor/userdefinedsnippets#_variables)
"Insert_const_variable": {
"prefix": "const",
"body": "${1:varname} -> ${1/(.*)/${1:/upcase}/}",
"description": "Declare const"
}
expected : const -> CONST
actual : const -> const
Thanks in advance.