转到VSCode的设置
在 Windows/Linux - 文件 > 首选项 > 设置或快捷方式(ctrl,)
在 macOS - 代码 > 首选项 > 设置或快捷方式 (⌘,) 或搜索 (⇧⌘P) → “首选项:打开设置”
搜索“workbench:颜色自定义”并打开settings.json文件
如果您是第一次编辑,您会看到 workbench.colorCustomizations 为空,
"workbench.colorCustomizations": {
}
在 workbench.colorCustomizations 下编辑或粘贴您的配置
填写您的自定义选项,
我在这里分享同位素主题
"workbench.colorCustomizations": {
"terminal.background":"#000000",
"terminal.foreground":"#D0D0D0",
"terminalCursor.background":"#D0D0D0",
"terminalCursor.foreground":"#D0D0D0",
"terminal.ansiBlack":"#000000",
"terminal.ansiBlue":"#0066FF",
"terminal.ansiBrightBlack":"#808080",
"terminal.ansiBrightBlue":"#0066FF",
"terminal.ansiBrightCyan":"#00FFFF",
"terminal.ansiBrightGreen":"#33FF00",
"terminal.ansiBrightMagenta":"#CC00FF",
"terminal.ansiBrightRed":"#FF0000",
"terminal.ansiBrightWhite":"#FFFFFF",
"terminal.ansiBrightYellow":"#FF0099",
"terminal.ansiCyan":"#00FFFF",
"terminal.ansiGreen":"#33FF00",
"terminal.ansiMagenta":"#CC00FF",
"terminal.ansiRed":"#FF0000",
"terminal.ansiWhite":"#D0D0D0",
"terminal.ansiYellow":"#FF0099"
}
现在您可以在 VS Code 终端中看到您的更改
更多主题 => Base16 Themes
更多定制 => VSCode Terminal Colors