vscode配置

1.F1–> 输入:首选项:配置用户代码片段
2.选择下面这个
在这里插入图片描述
3.输入或选择需要的配置
在这里插入图片描述

配置文件

vue

vue.json

{
	 "Print to vueTitle": {
        "prefix": "vueTitle",
        "body": [
            "<!-- ",
            " * @description: ",
            " * @author: 迷阵 ",
            " * @date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND} ",
            " * @version: V1.0.0 ",
            "!-->"
        ],
        "description": "注释"
    },
	   "Print to htmlStart":{
        "prefix": "htmlStart",
        "body": [
            "<!--  $0start   @author: 迷阵  !-->"
        ],
        "description": "Start在html区块开始时使用"
    },
    "Print to htmlItem":{
        "prefix": "htmlEnd",
        "body": [
            "<!--  $0end   @author: 迷阵  !-->"
        ],
        "description": "End在html区块结束时使用"
    }
}
javascript

javascript.json

{
 "Print to jsNoteTitle": {
        "prefix": "jsNoteTitle",
        "body": [
            "/*",
            " *@description:",
            " *@author: Linxi",
            " *@date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}",
            " *@version: V1.0.0",
            "*/"
        ],
        "description": ""
    },
    "Print to jsfn": {
        "prefix": "jsfn",
        "body": [
            "/*",
            " *@functionName: ${TM_CURRENT_LINE}",
            " *@params1: ${1:参数1}",
            " *@params2: ${2:参数2}",
            " *@params3: ${3:参数3}",
            " *@params4: ${4:参数4}",
            " *@description:",
            " *@author: Linxi",
            " *@date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}",
            " *@version: V1.0.0",
            "*/"
        ],
        "description": ""
    },
    "Print to jsModify": {
        "prefix": "jsModify",
        "body": [
            "/*",
            " *@description:",
            " *@modifyContent:",
            " *@author: Linxi",
            " *@date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}",
            "*/"
        ],
        "description": ""
    },
    "Print to jsVariable": {
        "prefix": "jsVariable",
        "body": [
            "/*",
            " *@description:",
            " *@author: Linxi",
            " *@date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}",
            " *@variable1: ${1:变量1}",
            " *@variable2: ${2:变量2}",
            " *@variable3: ${3:变量3}",
            " *@variable4: ${4:变量4}",
            " *@variable5: ${5:变量5}",
            "*/"
        ],
        "description": ""
    },
}
Logo

前往低代码交流专区

更多推荐