Skip to content
| Marketplace
Sign in
Visual Studio Code>Themes>All In OneNew to Visual Studio Code? Get it now.
All In One

All In One

ocie.io

|
12 installs
| (0) | Free
Color VS Code editor backgrounds by language or file extension.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

All In One

All In One is a Visual Studio Code extension that gives visible text editors a background color based on the document's language. Use different colors to distinguish file types at a glance. The color is an editor decoration only; it does not change or save anything in your files.

Features

  • Set a background color for each VS Code language ID.
  • Enable or disable the backgrounds without removing your color choices.
  • Updates visible editors when you open or edit documents, switch editor views, or change the extension settings.
  • Leaves documents with no configured language color unchanged.

Quick Start Configuration

To get started quickly, open your VS Code settings (Cmd/Ctrl+Shift+P → Preferences: Open User Settings (JSON)) and copy-paste the following stub into your settings.json:

  "fileTypeBackgrounds.enabled": true,
  "fileTypeBackgrounds.fileTypes": {
    "csharp": ".cs",
    "fsharp": ".fs",
    "vb": ".vb"
  },
  "fileTypeBackgrounds.colors": {
    "python": "rgba(40, 167, 69, 0.15)",
    "javascript": "rgba(241, 224, 90, 0.15)",
    "javascriptreact": "rgba(241, 224, 90, 0.15)",
    "typescript": "rgba(49, 120, 198, 0.15)",
    "typescriptreact": "rgba(49, 120, 198, 0.15)",
    "go": "rgba(0, 173, 216, 0.15)",
    "json": "rgba(203, 140, 50, 0.15)",
    "html": "rgba(227, 76, 38, 0.15)",
    "css": "rgba(86, 61, 124, 0.15)",
    "java": "rgba(176, 114, 25, 0.15)",
    "csharp": "rgba(104, 33, 122, 0.20)",
    "fsharp": "rgba(55, 139, 186, 0.20)",
    "vb": "rgba(0, 120, 0, 0.20)"
  },

Tip: Always use colors with alpha transparency (e.g. rgba(..., 0.15) or 8-digit hex #RRGGBBAA) so that text selection highlights in the editor remain bright and visible. If you use a custom dark theme or dark editor background, you can also ensure selection highlights stand out with:

  "workbench.colorCustomizations": {
    "editor.selectionBackground": "#ffffff40",
    "editor.selectionHighlightBackground": "#ffffff20"
  }

Configuration

Add or customize settings in your VS Code settings.json. Colors can be any CSS color string supported by VS Code, including hex and rgba(...) values.

Color values in fileTypeBackgrounds.colors use the color-hex format, so settings.json shows a color swatch next to each value. Click it to open VS Code's color picker (or any color picker extension) and choose a color; hex values such as #1e3a5fcc are written back. The Settings UI does not show pickers for object settings, so edit settings.json to use them.

{
  "fileTypeBackgrounds.enabled": true,
  "fileTypeBackgrounds.fileTypes": {
    "csharp": ".cs",
    "myTemplate": [".tmpl", ".template"]
  },
  "fileTypeBackgrounds.colors": {
    "typescript": "rgba(49, 120, 198, 0.12)",
    "javascript": "rgba(240, 219, 79, 0.12)",
    "json": "rgba(128, 128, 128, 0.12)",
    "csharp": "rgba(104, 33, 122, 0.12)",
    "myTemplate": "rgba(0, 128, 128, 0.12)"
  }
}

fileTypeBackgrounds.fileTypes maps a custom file type name to one extension or an array of extensions. Add a matching entry with the same name to fileTypeBackgrounds.colors to assign its background color. Custom colors take precedence for matching file extensions; if none is configured, the extension falls back to the document's VS Code language ID color.

You can also set colors directly by VS Code language ID, without adding a custom mapping. For example, .ts files normally use typescript and .js files use javascript. You can see a document's language ID by clicking the language indicator in the VS Code status bar. File extension matches are case-insensitive.

Set fileTypeBackgrounds.enabled to false to turn off all backgrounds while keeping the configured colors.

Previewing colors

Open the files in samples/ to preview how your configured background colors look for Java, Python, JSX, JavaScript, JSON, HTML, Go, C#, F#, Visual Basic, and plain text. Edit a color in settings.json with the color picker and the open sample updates immediately.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft