zoukankan      html  css  js  c++  java
  • vscode护眼绿+python环境搭建

    0 环境

    • 系统:win10
    • 编辑器: vscode
    • python相关:python+anaconda安装好

    1 护眼绿

    1 安装Atom One Light Theme插件(重启vscode)

    2 settings.json配置

    若点击settings.json后界面不是空白且最外层有{} 则直接将下面代码最外层的大括号去掉 在cv进去 否则全部cv进来

    {
    // 字体大小设置
    "editor.fontSize": 20,
    // 界面放大/缩小
    "window.zoomLevel": 2,
    "workbench.colorCustomizations": {
           "[Atom One Light]": {
               "foreground": "#519657",
               "editor.background": "#c8e6c9",
               "editor.lineHighlightBackground": "#dcedc8",
               "editor.selectionBackground":"#f0f4c3",
               "editorWidget.background": "#c8e6c9",
               "editorHoverWidget.background":"#c8e6c9",
               "editorHoverWidget.border":"#a5d6a7",
               "editorLineNumber.foreground": "#a5d6a7",
               "editorWhitespace.foreground": "#a5d6a7",
               "editorIndentGuide.background": "#c8e6c9",
               "editorIndentGuide.activeBackground": "#a5d6a7",
               "editorSuggestWidget.background": "#c8e6c9",
               "editorSuggestWidget.border":"#a5d6a7",
               "editorSuggestWidget.foreground": "#338a3e",
               "editorSuggestWidget.highlightForeground": "#338a3e",
               "editorSuggestWidget.selectedBackground": "#a5d6a7",
               "activityBar.background": "#c8e6c9",
               "activityBar.foreground": "#519657",
               "activityBarBadge.background": "#519657",
               "activityBarBadge.foreground": "#FFFFFF",
               "editorLineNumber.activeForeground": "#519657",
               "input.background": "#c8e6c9",
               "input.border": "#c5e1a5",
               "focusBorder": "#c5e1a5",
               "sideBar.background": "#c8e6c9",
               "sideBarSectionHeader.background": "#c8e6c9",
               "tab.activeBackground": "#c8e6c9",
               "tab.activeForeground": "#519657",
               "tab.inactiveBackground": "#c8e6c9",
               "tab.inactiveForeground": "#97b498",
               "tab.border": "#c8e6c9",
               "badge.background": "#519657",
               "statusBar.background": "#c8e6c9",
               "statusBar.foreground": "#519657",
               "statusBarItem.hoverBackground": "#dcedc8",
               "statusBar.noFolderBackground": "#519657",
               "statusBar.debuggingBackground": "#519657",
               "statusBar.debuggingForeground": "#00701a",
               "debugToolBar.background": "#a5d6a7",
               "editorGroupHeader.tabsBackground": "#c8e6c9",
               "button.background": "#519657",
               "button.foreground": "#FFFFFF",
               "button.hoverBackground": "#519657",
               "extensionButton.prominentBackground": "#3BBA54",
               "extensionButton.prominentHoverBackground": "#4CC263",
               "scrollbar.shadow":"#a5d6a7",
               "scrollbarSlider.background":"#a5d6a7",
               "scrollbarSlider.hoverBackground":"#81c784",
               "scrollbarSlider.activeBackground":"#81c784",
               "list.activeSelectionBackground":"#dcedc8",
               "list.activeSelectionForeground":"#519657",
               "list.inactiveSelectionBackground":"#dcedc8",
               "list.inactiveSelectionForeground":"#519657",
               "list.hoverBackground":"#dcedc8",
               "list.highlightForeground":"#dcedc8",
               "gitDecoration.modifiedResourceForeground": "#00600f",
               "dropdown.background":"#c8e6c9",
               "dropdown.border":"#c5e1a5",
               "titleBar.activeBackground": "#c8e6c9",
               "titleBar.activeForeground": "#519657",
               "titleBar.inactiveBackground": "#c8e6c9",
               "titleBar.inactiveForeground": "#519657"
           },
       },
       "editor.tokenColorCustomizations": {
           "[Atom One Light]":{
               "comments": "#97b498",
               "strings": "#519657",
               "functions": "#7e57c2",
               "keywords": "#ab47bc",
               "variables": "#e57373",
               "textMateRules": [
                   {
                       "name": "Comment",
                       "scope": [
                           "comment"
                       ],
                       "settings": {
                           "foreground": "#97b498",
                           "fontStyle": ""
                       }
                   },
                   {
                       "name": "[VSCODE-CUSTOM] PHP Punctuation Variable Definition",
                       "scope": "punctuation.definition.variable.php",
                       "settings": {
                           "foreground": "#e57373"
                       }
                   },
               ]
           }
       }
    }
    

    2 python

    我没用python的虚拟环境 因为变动少(懒) 我直接默认配好(下面文章参考) 可以尝尝鲜pylance插件

    Python in VS Code:环境配置

    Python in VS Code:调试中开发

    1 插件的安装

    • 必安装的插件 Code Runner
    • 我常用的插件(不重要 可不装)

    2 settings.json配置

    前提 你的python 可以跑了

    "code-runner.executorMap": {
            // "python": "$pythonPath -u $fullFileName",
            "python": "set PYTHONIOENCODING=utf8 && python",
    },
    

    作者:以罗伊
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须在文章页面给出原文链接,否则保留追究法律责任的权利。
  • 相关阅读:
    用友U8 | 【存货管理】提示用户***正在记账,不允许并发。
    用友U8 | 怎么准确查找【采购入库单】、【采购发票】,对应的凭证号?
    用友U8 | 中途启用序列号管理,该怎么操作?
    Excel:提取身份证号中的性别
    给jupyter 添加代码自动补全功能
    SQL函数之:截断字符串
    解决Maven子项目提示 ‘parent.relativePath‘ of POM
    公共NTP资源汇总
    iperf3的使用
    ZeroTier的使用
  • 原文地址:https://www.cnblogs.com/my-ordinary/p/13376422.html
Copyright © 2011-2022 走看看