File snippets for HTML and PHP (#161881)

* Adding file snippets for HTML and PHP to start small.

* Adding TS
This commit is contained in:
Harald Kirschner 2022-09-27 17:15:57 +02:00 committed by GitHub
parent 70a7ce4d1a
commit ea5b244abd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 0 deletions

View File

@ -76,6 +76,12 @@
"meta.tag string.quoted": "other"
}
}
],
"snippets": [
{
"language": "html",
"path": "./snippets/html.code-snippets"
}
]
},
"repository": {

View File

@ -0,0 +1,18 @@
{
"html doc": {
"isFileTemplate": true,
"body": [
"<!DOCTYPE html>",
"<html>",
"<head>",
"\t<meta charset=\"UTF-8\" />",
"\t<title>${1:title}</title>",
"</head>",
"<body>",
"\t$0",
"</body>",
"</html>"
],
"description": "HTML Document"
}
}

View File

@ -12,6 +12,7 @@
},
"PHPDoc class …": {
"prefix": "doc_class",
"isFileTemplate": true,
"body": [
"/**",
" * ${6:undocumented class}",
@ -42,6 +43,7 @@
},
"PHPDoc function …": {
"prefix": "doc_f",
"isFileTemplate": true,
"body": [
"/**",
" * ${1:undocumented function summary}",

View File

@ -14,6 +14,7 @@
},
"Class Definition": {
"prefix": "class",
"isFileTemplate": true,
"body": [
"class ${1:name} {",
"\tconstructor(${2:parameters}) {",