简体   繁体   English

如何在 vscode 中更改 WSL(Windows 子系统 Linux)终端字体颜色?

[英]How can I change WSL (Windows Subsystem Linux) terminal font color in vscode?

I noticed that if I open WSL terminal natively it doesn't have these bright colors and it's much more visible... When I change VSCODE's color theme terminal font coloring follows but never gets better :)我注意到,如果我本机打开 WSL 终端,它就没有这些鲜艳的颜色,而且更明显……当我更改 VSCODE 的颜色主题时,终端字体颜色随之而来,但永远不会变得更好:)

vscode color theme #1 vscode 颜色主题 #1

**颜色主题#1**

vscode color theme #2 vscode 颜色主题 #2

颜色主题 #2

native WSL terminal原生 WSL 终端

本机 WSL 终端

As far as I know, you cannot change at all the vscode terminal colors (neither on wsl) as those are defined at workbench.colorCustomisations setting.据我所知,您无法更改所有 vscode 终端颜色(在 wsl 上都没有),因为这些颜色是在workbench.colorCustomisations设置中定义的。

These are the available customisation keys provided at VSCode Theme Color :这些是VSCode 主题颜色提供的可用自定义键:

"workbench.colorCustomizations": {
      "terminal.background":"#1D2021",
      "terminal.foreground":"#A89984",
      "terminalCursor.background":"#A89984",
      "terminalCursor.foreground":"#A89984",
      "terminal.ansiBlack":"#1D2021",
      "terminal.ansiBlue":"#0D6678",
      "terminal.ansiBrightBlack":"#665C54",
      "terminal.ansiBrightBlue":"#0D6678",
      "terminal.ansiBrightCyan":"#8BA59B",
      "terminal.ansiBrightGreen":"#95C085",
      "terminal.ansiBrightMagenta":"#8F4673",
      "terminal.ansiBrightRed":"#FB543F",
      "terminal.ansiBrightWhite":"#FDF4C1",
      "terminal.ansiBrightYellow":"#FAC03B",
      "terminal.ansiCyan":"#8BA59B",
      "terminal.ansiGreen":"#95C085",
      "terminal.ansiMagenta":"#8F4673",
      "terminal.ansiRed":"#FB543F",
      "terminal.ansiWhite":"#A89984",
      "terminal.ansiYellow":"#FAC03B"
}

There is a good website with some color templates: VSCode Base 16 Themes有一个很好的网站,里面有一些颜色模板: VSCode Base 16 Themes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VSCode 作为 Windows Subsystem for linux (WSL) 上的 Git 编辑器 - VSCode as Git editor on Windows Subsystem for linux (WSL) 如何从 Windows Linux 子系统打开 VSCode? - How to open VSCode from a Windows Linux Subsystem? 如何配置Visual Studio代码以从Windows的Linux子系统(WSL)运行/调试.NET(dotnet)Core? - How can I configure Visual Studio Code to run/debug .NET (dotnet) Core from the Windows Subsystem for Linux (WSL)? 如何修复 Linux (WSL) 的 Windows 子系统中的“错误:错误的 fsmonitor 版本 2”? - how to fix the `error: bad fsmonitor version 2` in Windows Subsystem for Linux (WSL)? VSCode,如何更改默认终端? - VSCode, how can I change the default terminal? 如何在 Linux 子系统中的 VSCode 上运行程序集 (.s) 文件 - How do i run assembly (.s) files on VSCode in Linux subsystem 使用 git 安装在 Windows 子系统中用于 VSCode 中的 Linux - Use git installed in Windows Subsystem for Linux in VSCode 如何在 VSCode 中更改光标颜色? - How can I change cursor color in VSCode? 如何在 VSCode 集成终端中打开一个新的 Ubuntu 20.04 shell (WSL2) - How can I open a New Ubuntu 20.04 shell (WSL2) in VSCode integrated terminal Visual Studio代码,使用WSL进行Python linting(适用于Linux的Windows子系统) - Visual Studio Code, Python linting with WSL (Windows Subsystem for Linux)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM