您的位置 >>> 星想互聯 >>> 編程技術 >>> PHP基礎
vs code常用代碼片斷
點擊數:427  發布時間2018-12-08 21:16:07
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and 
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope 
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is 
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: 
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. 
// Placeholders with the same ids are connected.
// Example:

"php": {
"prefix": "php", // 觸發的關鍵字 輸入php按下tab鍵
"body": [
"<?php",
"$1",
"?>",
],
"description": "php components"
},

"rs?": {
"prefix": "rs?", // 觸發的關鍵字 輸入rs?按下tab鍵
"body": [
"<?php echo $$rs['$1']?>",
],
"description": "rs? components"
},

"rs": {
"prefix": "rs", // 觸發的關鍵字 輸入rs按下tab鍵
"body": [
"echo $$rs['$1'];",
],
"description": "rs components"
},

"v": {
"prefix": "v", // 觸發的關鍵字 輸入v按下tab鍵
"body": [
"echo $$v['$1'];",
],
"description": "v components"
},

"ec": {
"prefix": "ec", // 觸發的關鍵字 輸入ec按下tab鍵
"body": [
"<?php echo $1 ?>",
],
"description": "ec components"
},

"fo": {
"prefix": "fo", // 觸發的關鍵字 輸入fo按下tab鍵
"body": [
"foreach($$rs as $$v){",
"$1",
"}",
],
"description": "fo components"
},

}





來源:咸寧網站建設
香港日本三级在线播放-中文字幕日本无吗-电影日本强奷在线播放