Theme Color

You can customize your active Visual Studio Code color theme with the workbench.colorCustomizations user setting.

{
  "workbench.colorCustomizations": {
    "activityBar.background": "#00AA00"
  }
}

Note: If you want to use an existing color theme, see Color Themes where you'll learn how to set the active color theme through the Preferences: Color Theme dropdown (⌘K ⌘T (Windows, Linux Ctrl+K Ctrl+T)).

Theme colors are available as CSS variables in webviews, and an extension is available which provides IntelliSense for them.

Color formats

Color values can be defined in the RGB color model with an alpha channel for transparency. As format, the following hexadecimal notations are supported: #RGB, #RGBA, #RRGGBB and #RRGGBBAA. R (red), G (green), B (blue), and A (alpha) are hexadecimal characters (0-9, a-f or A-F). The three-digit notation (#RGB) is a shorter version of the six-digit form (#RRGGBB) and the four-digit RGB notation (#RGBA) is a shorter version of the eight-digit form (#RRGGBBAA). For example #e35f is the same color as #ee3355ff.

If no alpha value is defined, it defaults to ff (opaque, no transparency). If alpha is set to 00, the color is fully transparent.

Some colors should not be opaque in order to not cover other annotations. Check the color descriptions to see to which colors this applies.

Contrast colors

The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.

  • contrastActiveBorder: An extra border around active elements to separate them from others for greater contrast.
  • contrastBorder: An extra border around elements to separate them from others for greater contrast.

Base colors

  • focusBorder: Overall border color for focused elements. This color is only used if not overridden by a component.
  • foreground: Overall foreground color. This color is only used if not overridden by a component.
  • disabledForeground: Overall foreground for disabled elements. This color is only used if not overridden by a component.
  • widget.border: Border color of widgets such as Find/Replace inside the editor.
  • widget.shadow: Shadow color of widgets such as Find/Replace inside the editor.
  • selection.background: Background color of text selections in the workbench (for input fields or text areas, does not apply to selections within the editor and the terminal).
  • descriptionForeground: Foreground color for description text providing additional information, for example for a label.
  • errorForeground: Overall foreground color for error messages (this color is only used if not overridden by a component).
  • icon.foreground: The default color for icons in the workbench.
  • sash.hoverBorder: The hover border color for draggable sashes.

Window border

The theme colors for VS Code window border.

  • window.activeBorder: Border color for the active (focused) window.
  • window.inactiveBorder: Border color for the inactive (unfocused) windows.

The window border colors are only supported on macOS and Linux (not Windows) and only when the custom title bar is enabled ("window.titleBarStyle": "custom").

Text colors

Colors inside a text document, such as the welcome page.

  • textBlockQuote.background: Background color for block quotes in text.
  • textBlockQuote.border: Border color for block quotes in text.
  • textCodeBlock.background: Background color for code blocks in text.
  • textLink.activeForeground: Foreground color for links in text when clicked on and on mouse hover.
  • textLink.foreground: Foreground color for links in text.
  • textPreformat.foreground: Foreground color for preformatted text segments.
  • textPreformat.background: Background color for preformatted text segments.
  • textPreformat.border: Border color for preformatted text segments.
  • textSeparator.foreground: Color for text separators.

Action colors

A set of colors to control the interactions with actions across the workbench.

  • toolbar.hoverBackground: Toolbar background when hovering over actions using the mouse
  • toolbar.hoverOutline: Toolbar outline when hovering over actions using the mouse
  • toolbar.activeBackground: Toolbar background when holding the mouse over actions
  • editorActionList.background: Action List background color.
  • editorActionList.foreground: Action List foreground color.
  • editorActionList.focusForeground: Action List foreground color for the focused item.
  • editorActionList.focusBackground: Action List background color for the focused item.

Button control

A set of colors for button widgets such as Open Folder button in the Explorer of a new window.

button control

  • button.background: Button background color.
  • button.foreground: Button foreground color.
  • button.border: Button border color.
  • button.separator: Button separator color.
  • button.hoverBackground: Button background color when hovering.
  • button.secondaryForeground: Secondary button foreground color.
  • button.secondaryBackground: Secondary button background color.
  • button.secondaryHoverBackground: Secondary button background color when hovering.
  • button.secondaryBorder: Secondary button border color.
  • checkbox.background: Background color of checkbox widget.
  • checkbox.foreground: Foreground color of checkbox widget.
  • checkbox.disabled.background: Background of a disabled checkbox.
  • checkbox.disabled.foreground: Foreground of a disabled checkbox.
  • checkbox.border: Border color of checkbox widget.
  • checkbox.selectBackground: Background color of checkbox widget when the element it's in is selected.
  • checkbox.selectBorder: Border color of checkbox widget when the element it's in is selected.
  • radio.activeForeground: Foreground color of active radio option.
  • radio.activeBackground: Background color of active radio option.
  • radio.activeBorder: Border color of the active radio option.
  • radio.inactiveForeground: Foreground color of inactive radio option.
  • radio.inactiveBackground: Background color of inactive radio option.
  • radio.inactiveBorder: Border color of the inactive radio option.
  • radio.inactiveHoverBackground: Background color of inactive active radio option when hovering.

A set of colors for all Dropdown widgets such as in the Integrated Terminal or the Output panel. Note that the Dropdown control is not used on macOS currently.

dropdown control

  • dropdown.background: Dropdown background.
  • dropdown.listBackground: Dropdown list background.
  • dropdown.border: Dropdown border.
  • dropdown.foreground: Dropdown foreground.

Input control

Colors for input controls such as in the Search view or the Find/Replace dialog.

input control

  • input.background: Input box background.
  • input.border: Input box border.
  • input.foreground: Input box foreground.
  • input.placeholderForeground: Input box foreground color for placeholder text.
  • inputOption.activeBackground: Background color of activated options in input fields.
  • inputOption.activeBorder: Border color of activated options in input fields.
  • inputOption.activeForeground: Foreground color of activated options in input fields.
  • inputOption.hoverBackground: Background color of activated options in input fields.
  • inputValidation.errorBackground: Input validation background color for error severity.
  • inputValidation.errorForeground: Input validation foreground color for error severity.
  • inputValidation.errorBorder: Input validation border color for error severity.
  • inputValidation.infoBackground: Input validation background color for information severity.
  • inputValidation.infoForeground: Input validation foreground color for information severity.
  • inputValidation.infoBorder: Input validation border color for information severity.
  • inputValidation.warningBackground: Input validation background color for information warning.
  • inputValidation.warningForeground: Input validation foreground color for warning severity.
  • inputValidation.warningBorder: Input validation border color for warning severity.

Scrollbar control

  • scrollbar.background: Scrollbar track background color.
  • scrollbar.shadow: Scrollbar slider shadow to indicate that the view is scrolled.
  • scrollbarSlider.activeBackground: Scrollbar slider background color when clicked on.
  • scrollbarSlider.background: Scrollbar slider background color.
  • scrollbarSlider.hoverBackground: Scrollbar slider background color when hovering.

Badge

Badges are small information labels, for example, search results count.

  • badge.foreground: Badge foreground color.
  • badge.background: Badge background color.

Progress bar

  • progressBar.background: Background color of the progress bar shown for long running operations.

Lists and trees

Colors for list and trees like the File Explorer. An active list/tree has keyboard focus, an inactive does not.

  • list.activeSelectionBackground: List/Tree background color for the selected item when the list/tree is active.
  • list.activeSelectionForeground: List/Tree foreground color for the selected item when the list/tree is active.
  • list.activeSelectionIconForeground: List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.
  • list.dropBackground: List/Tree drag and drop background when moving items around using the mouse.
  • list.focusBackground: List/Tree background color for the focused item when the list/tree is active.
  • list.focusForeground: List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.
  • list.focusHighlightForeground: List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.
  • list.focusOutline: List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.
  • list.focusAndSelectionOutline: List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.
  • list.highlightForeground: List/Tree foreground color of the match highlights when searching inside the list/tree.
  • list.hoverBackground: List/Tree background when hovering over items using the mouse.
  • list.hoverForeground: List/Tree foreground when hovering over items using the mouse.
  • list.inactiveSelectionBackground: List/Tree background color for the selected item when the list/tree is inactive.
  • list.inactiveSelectionForeground: List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.
  • list.inactiveSelectionIconForeground: List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.
  • list.inactiveFocusBackground: List background color for the focused item when the list is inactive. An active list has keyboard focus, an inactive does not. Currently only supported in lists.
  • list.inactiveFocusOutline: List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.
  • list.invalidItemForeground: List/Tree foreground color for invalid items, for example an unresolved root in explorer.
  • list.errorForeground: Foreground color of list items containing errors.
  • list.warningForeground: Foreground color of list items containing warnings.
  • listFilterWidget.background: List/Tree Filter background color of typed text when searching inside the list/tree.
  • listFilterWidget.outline: List/Tree Filter Widget's outline color of typed text when searching inside the list/tree.
  • listFilterWidget.noMatchesOutline: List/Tree Filter Widget's outline color when no match is found of typed text when searching inside the list/tree.
  • listFilterWidget.shadow: Shadow color of the type filter widget in lists and tree.
  • list.filterMatchBackground: Background color of the filtered matches in lists and trees.
  • list.filterMatchBorder: Border color of the filtered matches in lists and trees.
  • list.deemphasizedForeground: List/Tree foreground color for items that are deemphasized.
  • list.dropBetweenBackground: List/Tree drag and drop border color when moving items between items when using the mouse.
  • tree.indentGuidesStroke: Tree Widget's stroke color for indent guides.
  • tree.inactiveIndentGuidesStroke: Tree stroke color for the indentation guides that are not active.
  • tree.tableColumnsBorder: Tree stroke color for the indentation guides.
  • tree.tableOddRowsBackground: Background color for odd table rows.

Activity Bar

The Activity Bar is usually displayed either on the far left or right of the workbench and allows fast switching between views of the Side Bar.

  • activityBar.background: Activity Bar background color.
  • activityBar.dropBorder: Drag and drop feedback color for the activity bar items. The activity bar is showing on the far left or right and allows to switch between views of the side bar.
  • activityBar.foreground: Activity Bar foreground color (for example used for the icons).
  • activityBar.inactiveForeground: Activity Bar item foreground color when it is inactive.
  • activityBar.border: Activity Bar border color with the Side Bar.
  • activityBarBadge.background: Activity notification badge background color.
  • activityBarBadge.foreground: Activity notification badge foreground color.
  • activityBar.activeBorder: Activity Bar active indicator border color.
  • activityBar.activeBackground: Activity Bar optional background color for the active element.
  • activityBar.activeFocusBorder: Activity bar focus border color for the active item.
  • activityBarTop.foreground: Active foreground color of the item in the Activity bar when it is on top. The activity allows to switch between views of the side bar.
  • activityBarTop.activeBorder: Focus border color for the active item in the Activity bar when it is on top. The activity allows to switch between views of the side bar.
  • activityBarTop.inactiveForeground: Inactive foreground color of the item in the Activity bar when it is on top. The activity allows to switch between views of the side bar.
  • activityBarTop.dropBorder: Drag and drop feedback color for the items in the Activity bar when it is on top. The activity allows to switch between views of the side bar.
  • activityBarTop.background: Background color of the activity bar when set to top / bottom.
  • activityBarTop.activeBackground: Background color for the active item in the Activity bar when it is on top / bottom. The activity allows to switch between views of the side bar.
  • activityWarningBadge.foreground: Foreground color of the warning activity badge
  • activityWarningBadge.background: Background color of the warning activity badge
  • activityErrorBadge.foreground: Foreground color of the error activity badge
  • activityErrorBadge.background: Background color of the error activity badge

Profiles

  • profileBadge.background: Profile badge background color. The profile badge shows on top of the settings gear icon in the activity bar.
  • profileBadge.foreground: Profile badge foreground color. The profile badge shows on top of the settings gear icon in the activity bar.
  • profiles.sashBorder: The color of the Profiles editor splitview sash border.

The Side Bar contains views like the Explorer and Search.

  • sideBar.background: Side Bar background color.

  • sideBar.foreground: Side Bar foreground color. The Side Bar is the container for views like Explorer and Search.

  • sideBar.border: Side Bar border color on the side separating the editor.

  • sideBar.dropBackground: Drag and drop feedback color for the side bar sections. The color should have transparency so that the side bar sections can still shine through.

  • sideBarTitle.foreground: Side Bar title foreground color.

  • sideBarSectionHeader.background: Side Bar section header background color.

  • sideBarSectionHeader.foreground: Side Bar section header foreground color.

  • sideBarSectionHeader.border: Side bar section header border color.

  • sideBarActivityBarTop.border: Border color between the activity bar at the top/bottom and the views.

  • sideBarTitle.background: Side bar title background color. The side bar is the container for views like explorer and search.

  • sideBarTitle.border: Side bar title border color on the bottom, separating the title from the views. The side bar is the container for views like explorer and search.

  • sideBarStickyScroll.background: Background color of sticky scroll in the side bar.

  • sideBarStickyScroll.border: Border color of sticky scroll in the side bar.

  • sideBarStickyScroll.shadow: Shadow color of sticky scroll in the side bar.

Minimap

The Minimap shows a minified version of the current file.

  • minimap.findMatchHighlight: Highlight color for matches from search within files.

  • minimap.selectionHighlight: Highlight color for the editor selection.

  • minimap.errorHighlight: Highlight color for errors within the editor.

  • minimap.warningHighlight: Highlight color for warnings within the editor.

  • minimap.background: Minimap background color.

  • minimap.selectionOccurrenceHighlight: Minimap marker color for repeating editor selections.

  • minimap.foregroundOpacity: Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.

  • minimap.infoHighlight: Minimap marker color for infos.

  • minimap.chatEditHighlight: Color of pending edit regions in the minimap.

  • minimapSlider.background: Minimap slider background color.

  • minimapSlider.hoverBackground: Minimap slider background color when hovering.

  • minimapSlider.activeBackground: Minimap slider background color when clicked on.

  • minimapGutter.addedBackground: Minimap gutter color for added content.

  • minimapGutter.modifiedBackground: Minimap gutter color for modified content.

  • minimapGutter.deletedBackground: Minimap gutter color for deleted content.

  • editorMinimap.inlineChatInserted: Minimap marker color for inline chat inserted content.

Editor Groups & Tabs

Editor Groups are the containers of editors. There can be many editor groups. A Tab is the container of an editor. Multiple Tabs can be opened in one editor group.

  • editorGroup.border: Color to separate multiple editor groups from each other.

    editorGroup.border

  • editorGroup.dropBackground: Background color when dragging editors around.

    editorGroup.dropBackground

  • editorGroupHeader.noTabsBackground: Background color of the editor group title header when using single Tab (set "workbench.editor.showTabs": "single").

    editorGroupHeader.noTabsBackground

  • editorGroupHeader.tabsBackground: Background color of the Tabs container.

    editorGroupHeader.tabsBackground

  • editorGroupHeader.tabsBorder: Border color below the editor tabs control when tabs are enabled.

    editorGroupHeader.tabsBorder

  • editorGroupHeader.border: Border color between editor group header and editor (below breadcrumbs if enabled).

  • editorGroup.emptyBackground: Background color of an empty editor group.

  • editorGroup.focusedEmptyBorder: Border color of an empty editor group that is focused.

  • editorGroup.dropIntoPromptForeground: Foreground color of text shown over editors when dragging files. This text informs the user that they can hold shift to drop into the editor.

  • editorGroup.dropIntoPromptBackground: Background color of text shown over editors when dragging files. This text informs the user that they can hold shift to drop into the editor.

  • editorGroup.dropIntoPromptBorder: Border color of text shown over editors when dragging files. This text informs the user that they can hold shift to drop into the editor.

  • tab.activeBackground: Active Tab background color in an active group.

  • tab.unfocusedActiveBackground: Active Tab background color in an inactive editor group.

  • tab.activeForeground: Active Tab foreground color in an active group.

  • tab.border: Border to separate Tabs from each other.

  • tab.activeBorder: Bottom border for the active tab.

  • tab.selectedBorderTop: Border to the top of a selected tab. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.

  • tab.selectedBackground: Background of a selected tab. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.

  • tab.selectedForeground: Foreground of a selected tab. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.

  • tab.dragAndDropBorder: Border between tabs to indicate that a tab can be inserted between two tabs. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.

  • tab.unfocusedActiveBorder: Bottom border for the active tab in an inactive editor group.

  • tab.activeBorderTop: Top border for the active tab.

  • tab.unfocusedActiveBorderTop: Top border for the active tab in an inactive editor group

  • tab.lastPinnedBorder: Border on the right of the last pinned editor to separate from unpinned editors.

  • tab.inactiveBackground: Inactive Tab background color.

  • tab.unfocusedInactiveBackground: Inactive Tab background color in an unfocused group

  • tab.inactiveForeground: Inactive Tab foreground color in an active group.

  • tab.unfocusedActiveForeground: Active tab foreground color in an inactive editor group.

  • tab.unfocusedInactiveForeground: Inactive tab foreground color in an inactive editor group.

  • tab.hoverBackground: Tab background color when hovering

  • tab.unfocusedHoverBackground: Tab background color in an unfocused group when hovering

  • tab.hoverForeground: Tab foreground color when hovering

  • tab.unfocusedHoverForeground: Tab foreground color in an unfocused group when hovering

  • tab.hoverBorder: Border to highlight tabs when hovering

  • tab.unfocusedHoverBorder: Border to highlight tabs in an unfocused group when hovering

  • tab.activeModifiedBorder: Border on the top of modified (dirty) active tabs in an active group.

  • tab.inactiveModifiedBorder: Border on the top of modified (dirty) inactive tabs in an active group.

  • tab.unfocusedActiveModifiedBorder: Border on the top of modified (dirty) active tabs in an unfocused group.

  • tab.unfocusedInactiveModifiedBorder: Border on the top of modified (dirty) inactive tabs in an unfocused group.

  • editorPane.background: Background color of the editor pane visible on the left and right side of the centered editor layout.

  • sideBySideEditor.horizontalBorder: Color to separate two editors from each other when shown side by side in an editor group from top to bottom.

  • sideBySideEditor.verticalBorder: Color to separate two editors from each other when shown side by side in an editor group from left to right.

Editor colors

The most prominent editor colors are the token colors used for syntax highlighting and are based on the language grammar installed. These colors are defined by the Color Theme but can also be customized with the editor.tokenColorCustomizations setting. See Customize a Color Theme for details on updating a Color Theme and the available token types.

All other editor colors are listed here:

  • editor.background: Editor background color.
  • editor.foreground: Editor default foreground color.
  • editorLineNumber.foreground: Color of editor line numbers.
  • editorLineNumber.activeForeground: Color of the active editor line number.
  • editorLineNumber.dimmedForeground: Color of the final editor line when editor.renderFinalNewline is set to dimmed.
  • editorCursor.background: The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.
  • editorCursor.foreground: Color of the editor cursor.
  • editorMultiCursor.primary.foreground: Color of the primary editor cursor when multiple cursors are present.
  • editorMultiCursor.primary.background: The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.
  • editorMultiCursor.secondary.foreground: Color of secondary editor cursors when multiple cursors are present.
  • editorMultiCursor.secondary.background: The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.
  • editor.placeholder.foreground: Foreground color of the placeholder text in the editor.
  • editor.compositionBorder: The border color for an IME composition.

Selection colors are visible when selecting one or more characters. In addition to the selection also all regions with the same content are highlighted.

selection highlight

  • editor.selectionBackground: Color of the editor selection.
  • editor.selectionForeground: Color of the selected text for high contrast.
  • editor.inactiveSelectionBackground: Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations.
  • editor.selectionHighlightBackground: Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations.
  • editor.selectionHighlightBorder: Border color for regions with the same content as the selection.

Word highlight colors are visible when the cursor is inside a symbol or a word. Depending on the language support available for the file type, all matching references and declarations are highlighted and read and write accesses get different colors. If document symbol language support is not available, this falls back to word highlighting.

occurrences

  • editor.wordHighlightBackground: Background color of a symbol during read-access, for example when reading a variable. The color must not be opaque so as not to hide underlying decorations.
  • editor.wordHighlightBorder: Border color of a symbol during read-access, for example when reading a variable.
  • editor.wordHighlightStrongBackground: Background color of a symbol during write-access, for example when writing to a variable. The color must not be opaque so as not to hide underlying decorations.
  • editor.wordHighlightStrongBorder: Border color of a symbol during write-access, for example when writing to a variable.
  • editor.wordHighlightTextBackground: Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations.
  • editor.wordHighlightTextBorder: Border color of a textual occurrence for a symbol.

Find colors depend on the current find string in the Find/Replace dialog.

Find matches

  • editor.findMatchBackground: Color of the current search match.
  • editor.findMatchForeground: Text color of the current search match.
  • editor.findMatchHighlightForeground: Foreground color of the other search matches.
  • editor.findMatchHighlightBackground: Color of the other search matches. The color must not be opaque so as not to hide underlying decorations.
  • editor.findRangeHighlightBackground: Color the range limiting the search (Enable 'Find in Selection' in the find widget). The color must not be opaque so as not to hide underlying decorations.
  • editor.findMatchBorder: Border color of the current search match.
  • editor.findMatchHighlightBorder: Border color of the other search matches.
  • editor.findRangeHighlightBorder: Border color the range limiting the search (Enable 'Find in Selection' in the find widget).

Search colors are used in the search viewlet's global search results.

Search Results

  • search.resultsInfoForeground: Color of the text in the search viewlet's completion message. For example, this color is used in the text that says "{x} results in {y} files".

Search Editor colors highlight results in a Search Editor. This can be configured separately from other find matches in order to better differentiate between different classes of match in the same editor.

Search Editor Matches

  • searchEditor.findMatchBackground: Color of the editor's results.
  • searchEditor.findMatchBorder: Border color of the editor's results.
  • searchEditor.textInputBorder: Search editor text input box border.

The hover highlight is shown behind the symbol for which a hover is shown.

Hover Highlight

  • editor.hoverHighlightBackground: Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations.

The current line is typically shown as either background highlight or a border (not both).

Line Highlight

  • editor.lineHighlightBackground: Background color for the highlight of line at the cursor position.
  • editor.inactiveLineHighlightBackground: Background color for the highlight of line at the cursor position when the editor is not focused.
  • editor.lineHighlightBorder: Background color for the border around the line at the cursor position.

The color for unicode highlights

  • editorUnicodeHighlight.border: Border color used to highlight unicode characters.
  • editorUnicodeHighlight.background: Background color used to highlight unicode characters.

The link color is visible when clicking on a link.

Link

  • editorLink.activeForeground: Color of active links.

The range highlight is visible when selecting a search result.

Range Highlight

  • editor.rangeHighlightBackground: Background color of highlighted ranges, used by Quick Open, Symbol in File and Find features. The color must not be opaque so as not to hide underlying decorations.
  • editor.rangeHighlightBorder: Background color of the border around highlighted ranges.

The symbol highlight is visible when navigating to a symbol via a command such as Go to Definition.

  • editor.symbolHighlightBackground: Background color of highlighted symbol. The color must not be opaque so as not to hide underlying decorations.
  • editor.symbolHighlightBorder: Background color of the border around highlighted symbols.

To see the editor white spaces, enable Toggle Render Whitespace.

  • editorWhitespace.foreground: Color of whitespace characters in the editor.

To see the editor indent guides, set "editor.guides.indentation": true and "editor.guides.highlightActiveIndentation": true.

  • editorIndentGuide.background: Color of the editor indentation guides.
  • editorIndentGuide.background1: Color of the editor indentation guides (1).
  • editorIndentGuide.background2: Color of the editor indentation guides (2).
  • editorIndentGuide.background3: Color of the editor indentation guides (3).
  • editorIndentGuide.background4: Color of the editor indentation guides (4).
  • editorIndentGuide.background5: Color of the editor indentation guides (5).
  • editorIndentGuide.background6: Color of the editor indentation guides (6).
  • editorIndentGuide.activeBackground: Color of the active editor indentation guide.
  • editorIndentGuide.activeBackground1: Color of the active editor indentation guides (1).
  • editorIndentGuide.activeBackground2: Color of the active editor indentation guides (2).
  • editorIndentGuide.activeBackground3: Color of the active editor indentation guides (3).
  • editorIndentGuide.activeBackground4: Color of the active editor indentation guides (4).
  • editorIndentGuide.activeBackground5: Color of the active editor indentation guides (5).
  • editorIndentGuide.activeBackground6: Color of the active editor indentation guides (6).

To see the editor inline hints, set "editor.inlineSuggest.enabled": true.

  • editorInlayHint.background: Background color of inline hints.
  • editorInlayHint.foreground: Foreground color of inline hints.
  • editorInlayHint.typeForeground: Foreground color of inline hints for types
  • editorInlayHint.typeBackground: Background color of inline hints for types
  • editorInlayHint.parameterForeground: Foreground color of inline hints for parameters
  • editorInlayHint.parameterBackground: Background color of inline hints for parameters

To see editor rulers, define their location with "editor.rulers"

  • editorRuler.foreground: Color of the editor rulers.

  • editor.linkedEditingBackground: Background color when the editor is in linked editing mode.

CodeLens:

CodeLens

  • editorCodeLens.foreground: Foreground color of an editor CodeLens.

Lightbulb:

  • editorLightBulb.foreground: The color used for the lightbulb actions icon.
  • editorLightBulbAutoFix.foreground: The color used for the lightbulb auto fix actions icon.
  • editorLightBulbAi.foreground: The color used for the lightbulb AI icon.

Bracket matches:

Bracket colors

  • editorBracketMatch.background: Background color behind matching brackets.
  • editorBracketMatch.border: Color for matching brackets boxes.
  • editorBracketMatch.foreground: Foreground color for matching brackets.

Bracket pair colorization:

  • editorBracketHighlight.foreground1: Foreground color of brackets (1). Requires enabling bracket pair colorization.
  • editorBracketHighlight.foreground2: Foreground color of brackets (2). Requires enabling bracket pair colorization.
  • editorBracketHighlight.foreground3: Foreground color of brackets (3). Requires enabling bracket pair colorization.
  • editorBracketHighlight.foreground4: Foreground color of brackets (4). Requires enabling bracket pair colorization.
  • editorBracketHighlight.foreground5: Foreground color of brackets (5). Requires enabling bracket pair colorization.
  • editorBracketHighlight.foreground6: Foreground color of brackets (6). Requires enabling bracket pair colorization.
  • editorBracketHighlight.unexpectedBracket.foreground: Foreground color of unexpected brackets.

Bracket pair guides:

  • editorBracketPairGuide.activeBackground1: Background color of active bracket pair guides (1). Requires enabling bracket pair guides.

  • editorBracketPairGuide.activeBackground2: Background color of active bracket pair guides (2). Requires enabling bracket pair guides.

  • editorBracketPairGuide.activeBackground3: Background color of active bracket pair guides (3). Requires enabling bracket pair guides.

  • editorBracketPairGuide.activeBackground4: Background color of active bracket pair guides (4). Requires enabling bracket pair guides.

  • editorBracketPairGuide.activeBackground5: Background color of active bracket pair guides (5). Requires enabling bracket pair guides.

  • editorBracketPairGuide.activeBackground6: Background color of active bracket pair guides (6). Requires enabling bracket pair guides.

  • editorBracketPairGuide.background1: Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.

  • editorBracketPairGuide.background2: Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.

  • editorBracketPairGuide.background3: Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.

  • editorBracketPairGuide.background4: Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.

  • editorBracketPairGuide.background5: Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.

  • editorBracketPairGuide.background6: Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.

Folding:

  • editor.foldBackground: Background color for folded ranges. The color must not be opaque so as not to hide underlying decorations.
  • editor.foldPlaceholderForeground: Color of the collapsed text after the first line of a folded range.

Overview ruler:

This ruler is located beneath the scroll bar on the right edge of the editor and gives an overview of the decorations in the editor.

  • editorOverviewRuler.background: Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.
  • editorOverviewRuler.border: Color of the overview ruler border.
  • editorOverviewRuler.findMatchForeground: Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations.
  • editorOverviewRuler.rangeHighlightForeground: Overview ruler marker color for highlighted ranges, like by the Quick Open, Symbol in File and Find features. The color must not be opaque so as not to hide underlying decorations.
  • editorOverviewRuler.selectionHighlightForeground: Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations.
  • editorOverviewRuler.wordHighlightForeground: Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations.
  • editorOverviewRuler.wordHighlightStrongForeground: Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations.
  • editorOverviewRuler.wordHighlightTextForeground: Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations.
  • editorOverviewRuler.modifiedForeground: Overview ruler marker color for modified content.
  • editorOverviewRuler.addedForeground: Overview ruler marker color for added content.
  • editorOverviewRuler.deletedForeground: Overview ruler marker color for deleted content.
  • editorOverviewRuler.errorForeground: Overview ruler marker color for errors.
  • editorOverviewRuler.warningForeground: Overview ruler marker color for warnings.
  • editorOverviewRuler.infoForeground: Overview ruler marker color for infos.
  • editorOverviewRuler.bracketMatchForeground: Overview ruler marker color for matching brackets.
  • editorOverviewRuler.inlineChatInserted: Overview ruler marker color for inline chat inserted content.
  • editorOverviewRuler.inlineChatRemoved: Overview ruler marker color for inline chat removed content.
  • editorOverviewRuler.commentDraftForeground: Editor overview ruler decoration color for comment threads with draft comments. This color should be opaque.

Errors and warnings:

  • editorError.foreground: Foreground color of error squiggles in the editor.
  • editorError.border: Border color of error boxes in the editor.
  • editorError.background: Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations.
  • editorWarning.foreground: Foreground color of warning squiggles in the editor.
  • editorWarning.border: Border color of warning boxes in the editor.
  • editorWarning.background: Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations.
  • editorInfo.foreground: Foreground color of info squiggles in the editor.
  • editorInfo.border: Border color of info boxes in the editor.
  • editorInfo.background: Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations.
  • editorHint.foreground: Foreground color of hints in the editor.
  • editorHint.border: Border color of hint boxes in the editor.
  • problemsErrorIcon.foreground: The color used for the problems error icon.
  • problemsWarningIcon.foreground: The color used for the problems warning icon.
  • problemsInfoIcon.foreground: The color used for the problems info icon.

Unused source code:

  • editorUnnecessaryCode.border: Border color of unnecessary (unused) source code in the editor.
  • editorUnnecessaryCode.opacity: Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the "editorUnnecessaryCode.border" theme color to underline unnecessary code instead of fading it out.

The gutter contains the glyph margins and the line numbers:

  • editorGutter.background: Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.
  • editorGutter.modifiedBackground: Editor gutter background color for lines that are modified.
  • editorGutter.modifiedSecondaryBackground: Editor gutter secondary background color for lines that are modified.
  • editorGutter.addedBackground: Editor gutter background color for lines that are added.
  • editorGutter.addedSecondaryBackground: Editor gutter secondary background color for lines that are added.
  • editorGutter.deletedBackground: Editor gutter background color for lines that are deleted.
  • editorGutter.deletedSecondaryBackground: Editor gutter secondary background color for lines that are deleted.
  • editorGutter.commentRangeForeground: Editor gutter decoration color for commenting ranges.
  • editorGutter.commentGlyphForeground: Editor gutter decoration color for commenting glyphs.
  • editorGutter.commentUnresolvedGlyphForeground: Editor gutter decoration color for commenting glyphs for unresolved comment threads.
  • editorGutter.foldingControlForeground: Color of the folding control in the editor gutter.
  • editorGutter.itemGlyphForeground: Editor gutter decoration color for gutter item glyphs.
  • editorGutter.itemBackground: Editor gutter decoration color for gutter item background. This color should be opaque.
  • editorGutter.commentDraftGlyphForeground: Editor gutter decoration color for commenting glyphs for comment threads with draft comments.

The editor comments widget can be seen when reviewing pull requests:

  • editorCommentsWidget.resolvedBorder: Color of borders and arrow for resolved comments.
  • editorCommentsWidget.unresolvedBorder: Color of borders and arrow for unresolved comments.
  • editorCommentsWidget.rangeBackground: Color of background for comment ranges.
  • editorCommentsWidget.rangeActiveBackground: Color of background for currently selected or hovered comment range.
  • editorCommentsWidget.replyInputBackground: Background color for comment reply input box.

Editor inline edits can be seen when using Copilot to suggest the next change to make:

  • inlineEdit.gutterIndicator.primaryBorder: Border color for the primary inline edit gutter indicator.
  • inlineEdit.gutterIndicator.primaryForeground: Foreground color for the primary inline edit gutter indicator.
  • inlineEdit.gutterIndicator.primaryBackground: Background color for the primary inline edit gutter indicator.
  • inlineEdit.gutterIndicator.secondaryBorder: Border color for the secondary inline edit gutter indicator.
  • inlineEdit.gutterIndicator.secondaryForeground: Foreground color for the secondary inline edit gutter indicator.
  • inlineEdit.gutterIndicator.secondaryBackground: Background color for the secondary inline edit gutter indicator.
  • inlineEdit.gutterIndicator.successfulBorder: Border color for the successful inline edit gutter indicator.
  • inlineEdit.gutterIndicator.successfulForeground: Foreground color for the successful inline edit gutter indicator.
  • inlineEdit.gutterIndicator.successfulBackground: Background color for the successful inline edit gutter indicator.
  • inlineEdit.gutterIndicator.background: Background color for the inline edit gutter indicator.
  • inlineEdit.originalBackground: Background color for the original text in inline edits.
  • inlineEdit.modifiedBackground: Background color for the modified text in inline edits.
  • inlineEdit.originalChangedLineBackground: Background color for the changed lines in the original text of inline edits.
  • inlineEdit.originalChangedTextBackground: Overlay color for the changed text in the original text of inline edits.
  • inlineEdit.modifiedChangedLineBackground: Background color for the changed lines in the modified text of inline edits.
  • inlineEdit.modifiedChangedTextBackground: Overlay color for the changed text in the modified text of inline edits.
  • inlineEdit.originalBorder: Border color for the original text in inline edits.
  • inlineEdit.modifiedBorder: Border color for the modified text in inline edits.
  • inlineEdit.tabWillAcceptModifiedBorder: Modified border color for the inline edits widget when tab will accept it.
  • inlineEdit.tabWillAcceptOriginalBorder: Original border color for the inline edits widget over the original text when tab will accept it.

Diff editor colors

For coloring inserted and removed text, use either a background or a border color but not both.

  • diffEditor.insertedTextBackground: Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations.