1、引入本地字体声明代码
2、本来想像这样多行展开
3、但是一保存就变成一行了,特别特别长图里都没截取完整🥺
查看--切换自动换行
{
"files.autoSave": "afterDelay",
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"html.format.wrapLineLength": 300,
"prettier.printWidth": 400,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"fileheader.configObj": {
"createFileTime": true,
"language": {
"languagetest": {
"head": "/$$",
"middle": " $ @",
"end": " $/"
}
},
"autoAdd": true,
"autoAddLine": 100,
"autoAlready": true,
"annotationStr": {
"head": "/*",
"middle": " * @",
"end": " */",
"use": false
},
"headInsertLine": {
"php": 2,
"sh": 2
},
"beforeAnnotation": {
"文件后缀": "该文件后缀的头部注释之前添加某些内容"
},
"afterAnnotation": {
"文件后缀": "该文件后缀的头部注释之后添加某些内容"
},
"specialOptions": {
"特殊字段": "自定义比如LastEditTime/LastEditors"
},
"switch": {
"newlineAddAnnotation": true
},
"supportAutoLanguage": [],
"prohibitAutoAdd": ["json"],
"prohibitItemAutoAdd": ["项目的全称, 整个项目禁止自动添加头部注释, 可以使用快捷键添加"],
"moveCursor": true,
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"atSymbol": ["@", "@"],
"atSymbolObj": {
"文件后缀": ["头部注释@符号", "函数注释@符号"]
},
"colon": [": ", ": "],
"colonObj": {
"文件后缀": ["头部注释冒号", "函数注释冒号"]
},
"filePathColon": "路径分隔符替换",
"showErrorMessage": false,
"wideSame": false,
"wideNum": 13,
"functionWideNum": 0,
"CheckFileChange": false,
"createHeader": true,
"useWorker": false,
"designAddHead": false,
"headDesignName": "random",
"headDesign": false,
"cursorModeInternal": false
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.semi": false
},
"files.associations": {
"*.vue": "vue"
},
"emmet.triggerExpansionOnTab": true,
"markdown.preview.breaks": true,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"emmet.includeLanguages": {
"vue-html": "html-vue",
"vue": "html-vue",
"typescript": "javascriptreact",
"typescriptreact": "javascriptreact"
},
"[less]": {
"editor.defaultFormatter": "Wscats.eno"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[css]": {
"editor.defaultFormatter": "Wscats.eno"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.foldingStrategy": "indentation",
"vetur.validation.template": false,
"[scss]": {
"editor.defaultFormatter": "Wscats.eno"
},
"javascript.updateImportsOnFileMove.enabled": "always",
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"window.zoomLevel": 0
}
我这边的setting文件 你参考一下
您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!