05-VS code 配置

VS code 配置

    # 下载安装
    https://code.visualstudio.com/
    # 中文
    Ctrl+Shift+x --- 输入Chinese --- 点击安装
    # 退出重启
    
    ## vs code 配置 python 环境
    # win安装python3
    略
    # 安装python插件
    Ctrl+Shift+x --- 输入python --- 安装
    
    # 打开终端
    'ctrl+`键'
    # 终端 升级pip
    c:\python38\python.exe -m pip install --upgrade pip
    # 终端 安装flake8 yapf
    pip install flake8 yapf
    # 安装code runner插件
    Ctrl+Shift+x --- 输入code run --- 安装
    # 配置code runner 
    Ctrl+Shift+x --- Code Runner --- 管理 ---扩展管理 --- 勾选 code runner: Run in Terminal --- 重启
    
    
    ## vscode 配置shell 环境
    # win 安装git (git内有bash.exe)
    略
    # 设置环境变量 bash.exe
    C:\Program Files\Git\bin
    
    # 安装shell 语法提示 插件
    Ctrl+Shift+x --- 输入 shellman --- 安装
    # 安装shell 格式化 插件
    Ctrl+Shift+x --- 输入 shell-format --- 安装
    
    # 让git bash将vscode作为默认编辑器
    只需要在git三个可配置区域(--local --global --system)中的任意一个的配置文件中(.gitconfig)中, 加入以下代码:
    [core]
        editor = code --wait
    
    
    ## vscode 远程编辑
    # 安装远程资源管理器
    Ctrl+Shift+x --- 输入Remote Development --- 安装
    # 链接
    远程资源管理器

posted on 2025-02-13 14:08  luokeli  阅读(16)  评论(0)    收藏  举报

导航