Home > Back-end >  vscode bracket pairs changed colors with v1.67
vscode bracket pairs changed colors with v1.67

Time:05-07

I was trying out Swagger for Go. But somehow in Visual Studio Code it changed the colors.

Weird looking code colors

Before I installed Swagger the braces and brackets were not pink, yellow or blue. I tried already uninstalling Swagger and Vscode but this didn't help. Any suggestions?

EDIT: I'm using this golang implementation of Swagger: https://goswagger.io/

CodePudding user response:

v1.67 of vscode made colorization of matching brackets the default, see Enable bracket pair colorization by default. So it was just updating vscode to v1.67 that made the change for you.

Editor > Bracket Pair Colorization: Enabled the new default is enabled

Uncheck the box to disable it.

v1.67 Release Notes: Bracket Pair colorization Enabled by Default:

Bracket pair colorization can also be disabled just for specific languages:

"[typescript]": {
  "editor.bracketPairColorization.enabled": false
}

CodePudding user response:

The issue is not related to GO or any framework

Seems like you have mistakenly installed the vs-code extension "bracket-pair-colorizer-2"

Uninstall or disable the extension and the bracket colorization will be gone.

But, personally, i prefer using the bracket colorization as it helps to detect the start and end of the content inside a function

CodePudding user response:

If you want to turn it off.

On Windows/Linux - File > Preferences > Settings Then untick "Bracket Pair Colorization"

I've turned it off. The colours place emphasis on parts of the code I have little interest and I find my eyes constantly wondering back to it.

  • Related