mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +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:
parent
70a7ce4d1a
commit
ea5b244abd
|
@ -76,6 +76,12 @@
|
|||
"meta.tag string.quoted": "other"
|
||||
}
|
||||
}
|
||||
],
|
||||
"snippets": [
|
||||
{
|
||||
"language": "html",
|
||||
"path": "./snippets/html.code-snippets"
|
||||
}
|
||||
]
|
||||
},
|
||||
"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 …": {
|
||||
"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}",
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
},
|
||||
"Class Definition": {
|
||||
"prefix": "class",
|
||||
"isFileTemplate": true,
|
||||
"body": [
|
||||
"class ${1:name} {",
|
||||
"\tconstructor(${2:parameters}) {",
|
||||
|
|
Loading…
Reference in a new issue