Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // If you want to convert a PascalCase variable to camelCase, you can do the following:
- // Where `n` is the tab stop you want to reference
- ${n/^(.)(.*)$/${1:/downcase}${2}/}
- // Example: ${1:This is my original} => ${1/^(.)(.*)$/${1:/downcase}${2}/}
- // If you want to convert a camelCase variable to PascalCase, you can do the following:
- // Where `n` is the tab stop you want to reference
- ${n/^(.)(.*)$/${1:/upcase}${2}/}
- // Example: ${1:This is my original} => ${1/^(.)(.*)$/${1:/upcase}${2}/}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement