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
4 changed files with 27 additions and 0 deletions

View File

@@ -76,6 +76,12 @@
"meta.tag string.quoted": "other" "meta.tag string.quoted": "other"
} }
} }
],
"snippets": [
{
"language": "html",
"path": "./snippets/html.code-snippets"
}
] ]
}, },
"repository": { "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 …": { "PHPDoc class …": {
"prefix": "doc_class", "prefix": "doc_class",
"isFileTemplate": true,
"body": [ "body": [
"/**", "/**",
" * ${6:undocumented class}", " * ${6:undocumented class}",
@@ -42,6 +43,7 @@
}, },
"PHPDoc function …": { "PHPDoc function …": {
"prefix": "doc_f", "prefix": "doc_f",
"isFileTemplate": true,
"body": [ "body": [
"/**", "/**",
" * ${1:undocumented function summary}", " * ${1:undocumented function summary}",

View File

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