Skip to content

Commit fea182f

Browse files
committed
Add VS Code snippets file
1 parent bda921a commit fea182f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.vscode/php.code-snippets

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"Class file": {
3+
"scope": "php",
4+
"prefix": "<?php",
5+
"body": [
6+
"<?php declare(strict_types=1);",
7+
"",
8+
"namespace ${TM_DIRECTORY/^.*\\\\/src\\\\/(?:(Toolkit)|(Util))|^.*\\\\/(tests\\\\/(?:unit|fixtures|3rdparty)\\\\/(?:(Toolkit)|(Util)))|\\\\/([a-zA-Z0-9]+)/${1:+Salient}${4:+Salient}${2:+Lkrms}${5:+Lkrms}${3:+\\\\Tests}${6:+\\\\}$6/g};",
9+
"",
10+
"class ${TM_FILENAME_BASE/[^a-zA-Z0-9]+//g} {",
11+
" $0",
12+
"}",
13+
""
14+
]
15+
}
16+
}

0 commit comments

Comments
 (0)