1.60版本vccode:
(1)找到shell配置文件“setting.json”:
在这里插入图片描述
(2)输入"terminal.,在提示中找到"terminal.integrated.profiles.windows":,点击会出现固定的配置信息:vscode检测到有3个可用终端:
powershell(ps),command prompt(cmd),git-bash(git),在 "terminal.integrated.defaultProfile.windows"中指定vscode选择的终端:
最终为:

  "terminal.integrated.profiles.windows": {
        "PowerShell": {
            "source": "PowerShell",
            "icon": "terminal-powershell"
        },
        "Command Prompt": {
            "path": [
                "${env:windir}\\Sysnative\\cmd.exe",
                "${env:windir}\\System32\\cmd.exe"
            ],
            "args": [],
            "icon": "terminal-cmd"
        },
        "Git Bash": {
            "source": "Git Bash"
        }
    },
    "terminal.integrated.defaultProfile.windows": "Command Prompt"
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐