mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
File snippets for HTML and PHP (#161881)
* Adding file snippets for HTML and PHP to start small. * Adding TS
This commit is contained in:
@@ -76,6 +76,12 @@
|
|||||||
"meta.tag string.quoted": "other"
|
"meta.tag string.quoted": "other"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"snippets": [
|
||||||
|
{
|
||||||
|
"language": "html",
|
||||||
|
"path": "./snippets/html.code-snippets"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
18
extensions/html/snippets/html.code-snippets
Normal file
18
extensions/html/snippets/html.code-snippets
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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}",
|
||||||
|
|||||||
@@ -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}) {",
|
||||||
|
|||||||
Reference in New Issue
Block a user