设置VSCode护眼色

发布于 2024-04-07  1436 次阅读


Please refresh the page if equations are not rendered correctly.
---------------------------------------------------------------

安装插件

Atom One Light Theme

设置颜色

单击VsCode界面左下角的齿轮(设置,manager)--settings

点击右上角的open seetings图标,打开settings.json文件

然后复制粘贴如下内容到json文件中:

{
    "editor.fontSize": 16,
    "editor.fontFamily": "Consolas, 'Times New Roman', monospace",
    "workbench.settings.applyToAllProfiles": [
        "editor.fontFamily"
    ],
    "security.workspace.trust.untrustedFiles": "open",
    "jupyter.interactiveWindow.creationMode": "perFile",
    "explorer.confirmDelete": false,
    "Codegeex.Privacy": true,
    "workbench.editor.enablePreview": false,
    "editor.wordWrap": "on",
    "workbench.colorTheme": "Atom One Light",
    "editor.tabSize": 2, //工作台主题颜色
    // "typescript.updateImportsOnFileMove.enabled": "always",
    // "editor.formatOnSave": true, // 保存时格式化
    // "breadcrumbs.enabled": false, // 开启 vscode 文件路径导航
    // // "tslint.autoFixOnSave": true, // #每次保存的时候将代码按tslint格式进行修复
    // "eslint.autoFixOnSave": true, // #每次保存的时候将代码按eslint格式进行修复
    // "prettier.semi": false,//prettier 设置语句末尾不加分号
    "prettier.singleQuote": true, // prettier 设置强制单引号
    "vetur.format.defaultFormatter.js": "vscode-typescript", // #让vue中的js按编辑器自带的ts格式进行格式化 
    "window.enableMenuBarMnemonics": false,
    "liveServer.settings.donotShowInfoMsg": true,
    // "workbench.colorTheme": "Winter is Coming (Light)", //窗口.不启用菜单栏输入法,修改主题配色
    "workbench.colorCustomizations": { // 颜色设置
        // "foreground": "#75a478",
        "editor.background": "#C7EDCC",
        // "editor.background": "#c1d8ac",
        "sideBar.background": "#FAF9DE",
        "terminal.background": "#EAEAEF"
    },
    "files.autoGuessEncoding": true,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "extensions.ignoreRecommendations": true,
    "window.zoomLevel": 0,
    "git.confirmSync": false
}
Everything not saved will be lost.
最后更新于 2024-04-07