Skip to main content

All Questions

3 votes
3 answers
2k views

VSCODE snippet PHP to fill namespace automatically

I'm trying to create a VSCODE CODE SNIPPET for PHP that automatically put the namespace (based on folder path). The idea is make a substitution on the directory of the current document, considering ...
Allan Andrade's user avatar
1 vote
1 answer
353 views

vscode snippet transform file name regex

I'm trying to transform file-name.dto.ts to FileName in a snippet. ${TM_FILENAME_BASE/^(.*)([^.*]).*/${1:/pascalcase}$2/} However, I'm not quite sure how to transform the second capture group or third....
Allen Kim's user avatar