terminal.background
terminal background. The background of the Integrated Terminal's viewport.
Group: Integrated Terminal colors
Where terminal background paints
The outlined area moves from #1e1e1e to #1a5276, then back. The rest of the workbench stays on the default Dark+ colors.
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}
How to change terminal background color in Visual Studio Code
macOS
- Open settings.json. Press Shift+Command+P to open the Command Palette, then run Preferences: Open User Settings (JSON).
- Set this color id. Add terminal background under workbench.colorCustomizations. The background of the Integrated Terminal's viewport. Use a hex color such as #1a5276.
- Save the file. Press Command+S to save settings.json. Visual Studio Code applies the override on top of the active color theme. Remove the entry to use the theme color again.
Windows
Linux uses the same shortcuts.
- Open settings.json. Press Shift+Ctrl+P to open the Command Palette, then run Preferences: Open User Settings (JSON).
- Set this color id. Add terminal background under workbench.colorCustomizations. The background of the Integrated Terminal's viewport. Use a hex color such as #1a5276.
- Save the file. Press Ctrl+S to save settings.json. Visual Studio Code applies the override on top of the active color theme. Remove the entry to use the theme color again.
{
"workbench.colorCustomizations": {
"terminal.background": "#1a5276"
}
}Other Integrated Terminal colors
- terminal.border
The color of the border that separates split panes within the terminal. This defaults to panel.border.
- terminal.foreground
The default foreground color of the Integrated Terminal.
- terminal.ansiBlack
'Black' ANSI color in the terminal.
- terminal.ansiBlue
'Blue' ANSI color in the terminal.
- terminal.ansiBrightBlack
'BrightBlack' ANSI color in the terminal.
- terminal.ansiBrightBlue
'BrightBlue' ANSI color in the terminal.
- terminal.ansiBrightCyan
'BrightCyan' ANSI color in the terminal.
- terminal.ansiBrightGreen
'BrightGreen' ANSI color in the terminal.
- terminal.ansiBrightMagenta
'BrightMagenta' ANSI color in the terminal.
- terminal.ansiBrightRed
'BrightRed' ANSI color in the terminal.
- terminal.ansiBrightWhite
'BrightWhite' ANSI color in the terminal.
- terminal.ansiBrightYellow
'BrightYellow' ANSI color in the terminal.
- terminal.ansiCyan
'Cyan' ANSI color in the terminal.
- terminal.ansiGreen
'Green' ANSI color in the terminal.
- terminal.ansiMagenta
'Magenta' ANSI color in the terminal.
- terminal.ansiRed
'Red' ANSI color in the terminal.
- terminal.ansiWhite
'White' ANSI color in the terminal.
- terminal.ansiYellow
'Yellow' ANSI color in the terminal.
- terminal.selectionBackground
The selection background color of the terminal.
- terminal.selectionForeground
The selection foreground color of the terminal. When this is null the selection foreground will be retained and have the minimum contrast ratio feature applied.
- terminal.inactiveSelectionBackground
The selection background color of the terminal when it does not have focus.
- terminal.findMatchBackground
Color of the current search match in the terminal. The color must not be opaque so as not to hide underlying terminal content.
- terminal.findMatchBorder
Border color of the current search match in the terminal.
- terminal.findMatchHighlightBackground
Color of the other search matches in the terminal. The color must not be opaque so as not to hide underlying terminal content.
- terminal.findMatchHighlightBorder
Border color of the other search matches in the terminal.
- terminal.hoverHighlightBackground
Color of the highlight when hovering a link in the terminal.
- terminalCursor.background
The background color of the terminal cursor. Allows customizing the color of a character overlapped by a block cursor.
- terminalCursor.foreground
The foreground color of the terminal cursor.
- terminal.dropBackground
The background color when dragging on top of terminals. The color should have transparency so that the terminal contents can still shine through.
- terminal.tab.activeBorder
Border on the side of the terminal tab in the panel. This defaults to `tab.activeBorder`.
- terminalCommandDecoration.defaultBackground
The default terminal command decoration background color.
- terminalCommandDecoration.successBackground
The terminal command decoration background color for successful commands.
- terminalCommandDecoration.errorBackground
The terminal command decoration background color for error commands.
- terminalOverviewRuler.cursorForeground
The overview ruler cursor color.
- terminalOverviewRuler.findMatchForeground
Overview ruler marker color for find matches in the terminal.
- terminalStickyScroll.background
The background color of the sticky scroll overlay in the terminal.
- terminalStickyScroll.border
The border of the sticky scroll overlay in the terminal.
- terminalStickyScrollHover.background
The background color of the sticky scroll overlay in the terminal when hovered.
- terminal.initialHintForeground
Foreground color of the terminal initial hint.
- terminalOverviewRuler.border
The overview ruler left-side border color.
- terminalCommandGuide.foreground
The foreground color of the terminal command guide that appears to the left of a command and its output on hover.
- terminalSymbolIcon.aliasForeground
The foreground color for an alias icon. These icons will appear in the terminal suggest widget
- terminalSymbolIcon.branchForeground
The foreground color for a branch icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.commitForeground
The foreground color for a commit icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.flagForeground
The foreground color for an flag icon. These icons will appear in the terminal suggest widget
- terminalSymbolIcon.optionForeground
The foreground color for an option icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.optionValueForeground
The foreground color for an enum member icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.methodForeground
The foreground color for a method icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.argumentForeground
The foreground color for an argument icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.inlineSuggestionForeground
The foreground color for an inline suggestion icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.fileForeground
The foreground color for a file icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.folderForeground
The foreground color for a folder icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.pullRequestDoneForeground
The foreground color for a completed pull request icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.pullRequestForeground
The foreground color for a pull request icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.remoteForeground
The foreground color for a remote icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.stashForeground
The foreground color for a stash icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.symbolText
The foreground color for a plaintext suggestion. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.symbolicLinkFileForeground
The foreground color for a symbolic link file icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.symbolicLinkFolderForeground
The foreground color for a symbolic link folder icon. These icons will appear in the terminal suggest widget.
- terminalSymbolIcon.tagForeground
The foreground color for a tag icon. These icons will appear in the terminal suggest widget.