DEV Community

Kyle McKell
Kyle McKell

Posted on

2 1

Setting Custom Bracket Colors with VSCode

I love Bracket Pair Colorizer

And I was extremely excited when VSCode picked it up to be included with no extensions! However... they changed the way that you set it up.

Here's an example snippet of my current bracket pair settings in my settings.json:

{
  // enables colors
  "editor.bracketPairColorization.enabled": true,

  // define what colors you want
  "workbench.colorCustomizations": {
    "editorBracketHighlight.foreground1": "#dfbaff",
    "editorBracketHighlight.foreground2": "#bae1ff",
    "editorBracketHighlight.foreground3": "#baffc9",
    "editorBracketHighlight.foreground4": "#ffffba",
    "editorBracketHighlight.foreground5": "#ffd3a1",
    "editorBracketHighlight.foreground6": "#ffb3ba"
  }
}
Enter fullscreen mode Exit fullscreen mode

And here's what these specific colors look like:

Color listing of bracket highlights

What it looks like in your editor with some code:

[...nextauth].ts file with Nord Theme, Hasklig, and Bracket Pair Colorizer

In case anyone is wondering, I use Nord theme and Hasklig font with font ligatures on.

Hope this helps anyone else who is looking to add some customization into their VSCode!

Lots of brackets with "enjoy" in the center of it

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay