peacock vscode change color

Peacock VSCode Change Color: Customize Your Editor in Seconds

By Laura Clark
AD

Peacock is a wildly popular extension for Visual Studio Code that injects a splash of color directly into your user interface. While the default pastel palette is pleasant, many developers want to customize their environment to match their personal aesthetic or align with team branding. If you are looking for how to change color in Peacock, the process is straightforward but offers a depth of customization that might surprise you.

Understanding the Peacock Color System

The extension works by modifying the workbench color token, meaning it changes the background of the main window rather than just text editor shades. When you ask how to change the color of Peacock in VS Code, you are actually adjusting a specific hex code or a predefined theme color. This ensures the color shift is applied consistently across the sidebar, status bar, and title bar, creating a cohesive look without modifying individual UI components.

Quick Color Switching with Commands

For rapid iteration, the easiest method to change Peacock color is through the Command Palette. You can cycle through your configured palettes or jump to a specific theme instantly. This is ideal for A/B testing different moods while you code.

AD
a peacock with its feathers spread out and the colors are blue, green, yellow, and orange
a peacock with its feathers spread out and the colors are blue, green, yellow, and orange
12 Types of Peacock Green
12 Types of Peacock Green
a peacock with its feathers spread out in front of it's color palettes
a peacock with its feathers spread out in front of it's color palettes

Using the Command Palette

  • Press Ctrl+Shift+P (or Cmd+Shift+P on macOS) to open the Command Palette.
  • Type "Peacock" to filter the actions.
  • Select "Peacock: Change Color" to cycle through your list or "Peacock: Change Color To" to pick a specific shade.

Configuring Your Settings File

To establish a permanent change or set a default, you will need to modify your VS Code settings. This is where you can define the exact hex code for your brand color or favorite hue, ensuring the interface loads the way you want every time.

Navigate to your settings.json file. You can access this by opening the Command Palette and searching for "Preferences: Open Settings (JSON)". Within this file, you will add a specific line to define your color.

an image of a peacock with different colors on it's face and the color scheme below
an image of a peacock with different colors on it's face and the color scheme below
color combination peacock & honeydew
color combination peacock & honeydew
Teal & Gold Luxury Color Palette | Peacock Inspired Branding Colors
Teal & Gold Luxury Color Palette | Peacock Inspired Branding Colors

Defining the Color Syntax

The configuration syntax is simple but precise. You must use the exact property name expected by the extension and provide a valid color value. This tells Peacock exactly which shade to apply to the workbench background.

Setting KeyDescriptionExample
"peacock.color"Sets the primary color for the UI."#ff6b6b"
"peacock.alias"Creates a named shortcut for this color."Serenity"

Advanced Customization with Aliases

If you frequently switch between different visual identities—perhaps for client work or personal projects—using an alias is the most efficient strategy. An alias acts as a bookmark for a specific color configuration, allowing you to load complex setups with a single click.

AD

By defining an alias in your settings, you can trigger a complete color profile change without typing the hex code again. This is particularly useful for maintaining distinct workflows, such as a calm blue for deep focus and a vibrant orange for high-energy debugging sessions.

the colors of peacock feathers are shown in this color chart, which shows different shades
the colors of peacock feathers are shown in this color chart, which shows different shades
an image of peacock feathers on the webpage with colors and font options for each page
an image of peacock feathers on the webpage with colors and font options for each page
the words peacock blue in white on a teal green background with black and white lettering
the words peacock blue in white on a teal green background with black and white lettering
an iphone screen with the text peacock blue on it, and another screenshote that reads
an iphone screen with the text peacock blue on it, and another screenshote that reads
four different colors with the words garnet, gold, and peacock on them
four different colors with the words garnet, gold, and peacock on them
a peacock with its feathers spread out and it's colors are blue, green, and
a peacock with its feathers spread out and it's colors are blue, green, and

Troubleshooting Common Issues

Sometimes, changing the color might not appear to work immediately, or the extension might not activate on certain file types. This is usually due to theme conflicts or workspace trust settings overriding the configuration.

Ensure that your custom color setting is saved without syntax errors, such as trailing commas outside of objects. Additionally, check if you are in "Restricted Mode" for your workspace, which can prevent extensions from modifying the UI. Verifying these details usually resolves the majority of visual discrepancies.

AD
Peacock Parade Color Palette
Peacock Parade Color Palette
Deep Mooring & Amulet
Deep Mooring & Amulet
Ragweed / Aphrodite Aqua / Neon Lagoon / Peacock Feather / Blue Enchantment / Integrity
Ragweed / Aphrodite Aqua / Neon Lagoon / Peacock Feather / Blue Enchantment / Integrity
a peacock with its feathers spread out in front of it's color palettes
a peacock with its feathers spread out in front of it's color palettes
peacock feathers with blue and green hues in the background, from pantone's 2012 - 2013 color guide
peacock feathers with blue and green hues in the background, from pantone's 2012 - 2013 color guide
a collage of photos with the words peacock in blue and green colors, including an image of a woman's face
a collage of photos with the words peacock in blue and green colors, including an image of a woman's face
peacock feathers with blue and green colors in the background, showing different color combinations for each feather
peacock feathers with blue and green colors in the background, showing different color combinations for each feather
Peacock
Peacock
a peacock feather is shown in this color scheme
a peacock feather is shown in this color scheme
an iphone screen showing the color palettes in different colors, including blue and purple
an iphone screen showing the color palettes in different colors, including blue and purple
the color scheme is very colorful and has many different colors to choose from, including blue,
the color scheme is very colorful and has many different colors to choose from, including blue,
an image of a peacock with different colors
an image of a peacock with different colors
the color combos in this photo are blue, green and purple with an orange bird on
the color combos in this photo are blue, green and purple with an orange bird on
an iphone screen showing the color scheme for a peacock's feathers feather, which appears to be purple and teal
an iphone screen showing the color scheme for a peacock's feathers feather, which appears to be purple and teal
AD