1.打开setting.json
位置:
1)在vscode界面中打开
打开 文件 ==>> 首选项 ==>> 设置
右上角,点击图标
在配置目录中打开
vim ~/.config/Code/User/settings.json
2.我的配置文件
{
"files.associations": {
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript"
},
"emmet.includeLanguages": {
"wxml": "html"
},
"minapp-vscode.disableAutoConfig": true,
"editor.renderIndentGuides": false,
"editor.autoClosingBrackets": "always",
"editor.autoClosingQuotes": "always",
"files.autoSave": "afterDelay",
"editor.minimap.enabled": true,
"breadcrumbs.enabled": true,
"editor.mouseWheelZoom": true,
"codegnuglobal.executable": "/usr/bin/global",
"codegnuglobal.autoupdate": false,
"update.enableWindowsBackgroundUpdates":true,
"background.enabled":true,
"background.customImages": [""],
"background.style": {
"content": "''",
"pointer-events": "none",
"position": "absolute",
"z-index": "99999",
"width": "100%",
"height": "100%",
"background-position": "100% 100%",
"background-repeat": "no-repeat",
"opacity": 0.2
},
"background.useFront": true,
"background.useDefault": false,
"git.ignoreMissingGitWarning": true,
"editor.fontFamily": "Consolas, mononoki,'Courier New', monospace",
"editor.renderLineHighlight": "none",
"editor.lineHeight": 16,
"editor.roundedSelection": true,
"editor.fontSize": 14,
"editor.fontWeight": "bold",
"terminal.integrated.fontSize": 14,
"terminal.integrated.fontWeight": "bold",
"workbench.colorCustomizations": {
"[Visual Studio Dark]":{
"editor.foreground": "#ffffff",
"editor.background": "#242222",
"editor.selectionBackground":"#b9b9b946",
//"editor.selectionHighlightBorder": "#bdbdbd",
//"editorHint.border": "#ff0000",
//"editorInfo.border": "#ff0000",
//"editorGroup.border": "#ff0000",
//"diffEditor.border": "#ff0000",
//"tab.border": "#ff0000",
"panel.border": "#adb3e9",
//"panelInput.border": "#ff0000",
//"panelInput.border": "#ff0000",
//"focusBorder": "#ff0000",
//"input.border": "#ff0000",
//"merge.border": "#ff0000",
//"button.border": "#ff0000",
"contrastBorder": "#ffffff", //边框颜色
"debugToolBar.border": "#ff0000",
"terminal.border": "#ff0000",
"terminal.background": "#020202",
"terminal.foreground": "#ffff",
//"editor.selectionHighlightBorder": "#f8f8f000",
"editor.selectionHighlightBackground": "#b9b9b946",
"editor.selectionForeground": "#f1eded",
//"editorIndentGuide.activeBackground":"#81868d",
"editorBracketMatch.background": "#8b747471",
//"editorBracketMatch.border": "#ff0000",
//"tab.activeBackground": "#0b051ab2",
"textLink.foreground": "#d6561ac4",
//"descriptionForeground": "#ff0000",
"selection.background": "#ff0000",
//"textBlockQuote.background":"#b89a9a",
//"textSeparator.foreground": "#86c2df"
},
},
"editor.tokenColorCustomizations": {
"[Visual Studio Dark]":{
"comments": "#00effb",
"types": "#FF0000",
//"strings": "#0bf01e",
"functions": "#f2f600",
"keywords": "#48ff00",
//"variables":"#3e3e4100",
//"numbers": "#948faf73",
"textMateRules": [
{
"scope": ["markup.italic.markdown", "markup.bold.markdown"],
"settings": {
"fontStyle": "italic"
}
},
{
"name": "Comment",
"scope":[
"comment"
],
"settings": {
"foreground": "#00ffff",
"fontStyle": "italic bold"
}
},
{
"name": "[VSCODE-CUSTOM] PHP Punctuation Variable Definition",
"scope": "punctuation.definition.variable.php",
"settings": {
"foreground": "#e57373",
"fontStyle": "bold"
}
},
{
"name": "String",
"scope":[
"string"
],
"settings": {
"foreground": "#32a504",
"fontStyle": ""
}
},
{
"name": "HTML:Tags",
"scope":[
"meta.tag",
"punctuation.definition.tag.html",
"punctuation.definition.tag.begin.html",
"punctuation.definition.tag.end.html"
],
"settings": {
"foreground": "#4d4242",
"fontStyle": ""
}
},
{
"name": "HTML:Tag Names",
"scope":"entity.name.tag",
"settings": {
"foreground": "#a617e9",
"fontStyle": "bold"
}
},
{
"name": "HTML: Attribute Names",
"scope": [
"meta.tag entity.other.attribute-name",
"entity.other.attribute-name.html"
],
"settings": {
"fontStyle": "italic",
"foreground": "#f31616"
}
},
{
"name": "Operator",
"scope":"keyword.operator",
"settings": {
"foreground": "#e21d1d",
"fontStyle": ""
}
},
{
"name": "terminal",
"scope":"string.quoted.triple",
"settings": {
"foreground": "#FF0000",
"fontStyle": "bold"
}
}
]
}
},
"workbench.colorTheme": "Visual Studio Dark",
"window.zoomLevel": 1,
"workbench.sideBar.location": "right",
}