相关疑难解决方法(0)

VS Code集成终端的颜色主题

我们可以更改VS Code Integrated Terminal的颜色设置吗?我看起来只是白色的沉闷.

在此输入图像描述

terminal visual-studio-code vscode-settings

73
推荐指数
7
解决办法
7万
查看次数

为什么我的集成 VS Code Bash 终端不使用 bash 着色?

当我使用 VS Code 的集成 bash 终端时,我没有任何正常的 bash 着色方案,我的所有文本都是白色的。如果我在 VS Code 之外使用 git bash,我会得到所有正常的目录颜色。

我尝试了这里接受的答案以及同一篇文章中提到的其他答案,但没有任何效果。我还确保将 bash 终端配置文件设置为正确的 exe 文件,但这也不起作用。我还阅读了 VS Code 关于终端配置文件的新文档,但我认为我的设置正确。我现在不知道还要检查什么,一切看起来都是正确的。有人有什么想法吗?

这是我的终端设置:

    "terminal.integrated.defaultProfile.windows": "Command Prompt",
    "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",
            "icon": "terminal-bash",
            "path": "C:\\Program Files\\Git\\bin\\bash.exe"
        }
    }
Run Code Online (Sandbox Code Playgroud)

这是一张显示 Git Bash、VS Code 的设置和我的 VS Code Bash 终端的图片。

VSC 内的 Bash:

$ echo $COLORTERM
truecolor
$ echo $PS1 …
Run Code Online (Sandbox Code Playgroud)

windows git bash visual-studio-code

4
推荐指数
1
解决办法
1065
查看次数