1

Is there a way to create a chain of regex to capitalize a string and than remove all characters - from it in Visual Studio Code snippets?

    "body": [
        "const ${TM_FILENAME_BASE/([a-z])(\\w+)/${1:/upcase}$2  /['-.']//  /g};
    ]

Wanted Result:
File Name: user-name.js
Snippet: const UserName

Thanks!

rioV8
  • 24,506
  • 3
  • 32
  • 49

0 Answers0