· 3 min read

🌈 2 Colors Extensions to make Visual Studio Code even better!

Assigning colors helps identifying different instances and files.

Assigning colors helps identifying different instances and files.

Colors 🌈 help us identify things in our surroundings, including Visual Studio Code instances and files.

Today I show how I solved two problems I had, thanks to colors and 2 vscode extensions. Here’s a video where I showcase them and how you can push the extension even further to get even better customization 👇

1. Identify different vscode instances

Colored instances

This is quite common, you may have a backend and a frontend repo, or simply you’re working on multiple projects and it happens that you have two or more vscode instances open.

Short answer: Peacock (get the extension)

It’s quite a famous and widely used extension, but if you don’t know it yet, it’s maybe time to give it a try!

(you can also customize projects from the settings, manually, but this extension makes it so much easier)

Peacock Features


Some features you may find useful:

With the command Peacock: Surprise me with a random color, you can assign a random color to the current project. Try it if you dare!

If you have already a color in mind, you can set it with Peacock: Enter a color.

You’re also covered if you want some suggestions, with Peacock: Change to a Favorite Color you’ll get a list of predefined colors (you can also expand this list with your own colors).

2. Identify files and folders in the same repo

Colored files

I was recently playing around with Module Federation, but this applies pretty much in all monorepo scenarios.

I wanted an easy way to know what project a file refers to and with another extension, Folder Path Color (get the extension), I was able to do that!

It has some limitations since colors on filenames are already used to track git status, so it’s up to you if you want to enable it or not.

Folder Path Color Features

Folder Path Color

The core feature here is that you can customize the colors for your file based on their path. You can also assign a symbol.

This is the config I use in the video:

  "folder-path-color.folders": [
      "path": "host",
      "symbol": "H",
      "tooltip": "Host"
      "path": "app01",
      "symbol": "01",
      "tooltip": "App 01",
      "color": "blue"
      "path": "app02",
      "symbol": "02",
      "tooltip": "App 02",
      "color": "cyan"

The symbol (that is a string) is particularly useful to overcome the limitation of the colors on filenames, so that git can color your newly added file in green but you still have the symbol next to the filename to identify the project.

You have some default colors, but you can also expand them with a set of custom colors.


This was a quick one, but I wanted to mention these two extensions I found to solve a couple of problems I had. Peacock is quite famous, but Folder Path Color is less known and I think it has some usecases.

If you want to see me testing the two extensions and their customization, here’s the video: https://www.youtube.com/watch?v=bvaSo3tip2g

About the author

Hello! My name is Leonardo and as you might have noticed, I like to talk about Web Development and Open Source!

I use GitHub every day and my favourite editor is Visual Studio Code... this might influence a little bit my conent! :D

If you like what I do, you should have a look at my YouTube Channel!

You might also like
Back to Blog