修改配置的方法是:
1.点击文件>首选项>设置 2.用户>工作台>外观>settings.json
workbench.colorCustomizations选项是配置护眼色选项,个人比较喜欢豆沙绿#C7EDCC (还有青草绿 #E3EDCD 、海天蓝 #DCE2F1 、杏仁黄 #FAF9DE 等),可根据个人喜好更换成不同的颜色。 其他的配置选项具有注释,可根据情况自定义修改
{
"workbench.colorTheme": "Quiet Light",
"workbench.colorCustomizations": {
"editor.background": "#C7EDCC",
"sideBar.background": "#C7EDCC",
"activityBar.background": "#C7EDCC"
},
"editor.formatOnSave": true,
"eslint.autoFixOnSave": true,
"[scss]": {
"editor.defaultFormatter": "michelemelluso.code-beautifier"
},
"workbench.iconTheme": "vscode-icons",
"go.formatTool": "goimports",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"editor.insertSpaces": false,
"workbench.editor.enablePreview": false,
"search.followSymlinks": false,
"editor.minimap.enabled": false,
"files.autoSave": "afterDelay",
"editor.lineNumbers": "on",
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"editor.tabSize": 2,
"editor.formatOnSave": true,
"prettier.eslintIntegration": true,
"prettier.semi": true,
"prettier.singleQuote": false,
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-aligned"
},
"prettier": {
"semi": false,
"singleQuote": true
},
"vscode-typescript": {
"semi": false,
"singleQuote": true
}
},
"eslint.validate": [
"vue",
"typescript",
"typescriptreact",
"html"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
|