Last updated: Apr 6, 2024
Reading time·3 min
To change the integrated terminal colors in VS Code:
Ctrl
+ Shift
+ P
(or Command
+ Shift
+ P
on macOS).F1
to open the Command Palette.You can also open the settings screen by pressing Ctrl
+ ,
on Windows and
Linux or Cmd
+ ,
on macOS.
You can use the following format to change the color theme of your integrated terminal.
"workbench.colorCustomizations": { "terminal.background": "#131212f4", "terminal.foreground": "#dddad6e7" },
Make sure to remove the trailing comma if the property comes last.
The terminal.background
property sets the background color of the terminal.
The terminal.foreground
property sets the text color.
The color can be set using the following formats:
#RGB
#RGBA
#RRGGBB
#RRGGBBAA
Once you set the property to a specific color, you can hover over the color and use the color picker.
If you need to change the color of the cursor in the terminal, use the
terminalCursor.foreground
property.
"workbench.colorCustomizations": { "terminal.background": "#0f0e0ef4", "terminal.foreground": "#dddad6e7", "terminalCursor.foreground": "#f1d755e7" },
If you need more fine-grained control over the colors in the terminal, set the
ansi*
properties.
"workbench.colorCustomizations": { "terminal.background": "#131212f4", "terminal.foreground": "#dddad6e7", "terminal.ansiBlack": "#1d2021f3", "terminal.ansiBrightBlack": "#665c54e3", "terminal.ansiBrightBlue": "#0d6678ef", "terminal.ansiBrightCyan": "#8ba59bec", "terminal.ansiBrightGreen": "#237e02ee", "terminal.ansiBrightMagenta": "#8f4673ee", "terminal.ansiBrightRed": "#fb553ff2", "terminal.ansiBrightWhite": "#fdf4c1ed", "terminal.ansiBrightYellow": "#fac13bed", "terminal.ansiBlue": "#00a2f9f1", "terminal.ansiCyan": "#8ba59bf8", "terminal.ansiGreen": "#95c085f2", "terminal.ansiMagenta": "#8f4673ec", "terminal.ansiRed": "#fb553ff5", "terminal.ansiWhite": "#a89984f4", "terminal.ansiYellow": "#fac13bf1" }
The terminal.ansi*
properties can be used to set the different shades of all
colors in the terminal.
If you only want to change the terminal colors for a specific theme, specify the theme between a set of square brackets.
"workbench.colorCustomizations": { "[Monokai]": { "terminal.background": "#0f0e0ef4", "terminal.foreground": "#dddad6e7" } },
The terminal color customizations above only apply to the Monokai
theme.
You can specify any of the aforementioned properties in the theme-specific object to customize the terminal colors.
An alternative approach is to change your theme to change your terminal colors.
Ctrl
+ Shift
+ P
on Windows and Linux.Command
+ Shift
+ P
on macOS.F1
to open the Command Palette.After you click on the Preferences: Color Theme command, you can also select Browse Additional Color Themes to get a wider range of custom themes.
You can learn more about the related topics by checking out the following tutorials: