In VS Code, the docs for creating user defined snippets mentions some Grammar which includes options for /upcase, /downcase, and /capitalize
/upcase
/downcase
/capitalize
See the variable transforms section of the snippets section of the manual.
snippets