[FGCP] Make Class Snippet Parse Filename #4981
Labels
in editor
Relates to code editing or language features
in lsp/analysis server
Something to be fixed in the Dart analysis server
is enhancement
Milestone
This is a Fine-Grained Cherry-Pick (FGCP).
Replace
${1:Name}
with${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}}
inDart-Code/snippets/dart.json
Lines 98 to 106 in 0ac815d
...and replace the first
$1
with${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}
inDart-Code/snippets/flutter.json
Lines 3 to 18 in 0ac815d
Dart-Code/snippets/flutter.json
Lines 19 to 39 in 0ac815d
Dart-Code/snippets/flutter.json
Lines 40 to 75 in 0ac815d
This will make the snippet parse the filename (without the extensions), and sets it as the class name (converted to PascalCase).
The text was updated successfully, but these errors were encountered: