'vscode bracket pairs changed colors with v1.67
I was trying out Swagger for Go. But somehow in Visual Studio Code it changed the 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/
Solution 1:[1]
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
Solution 2:[2]
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
}
Solution 3:[3]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | suzan |
Solution 2 | |
Solution 3 |