Vscode支架对用v1.67更改了颜色

发布于 2025-01-27 05:56:14 字数 398 浏览 1 评论 0原文

我正在尝试招摇。但是以某种方式在Visual Studio代码中它改变了颜色。

在我安装大摇动之前,支架和支架不是粉红色,黄色或蓝色。 我已经尝试了已经卸载的Swagger和Vscode,但这无济于事。有什么建议吗?

编辑:我正在使用Swagger的这种Golang实现: https://goswagger.io/

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/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

只是一片海 2025-02-03 05:56:14

VScode的V1.67匹配括号的默认值,请参见。因此,它只是将VScode更新为V1.67,该V1.67为您进行了更改。

编辑>括号对着色:启用新的默认值是启用取消选中

该框以禁用它。

v1.67发行说明:默认<默认值< /a>:

支架对着色也可以仅适用于特定
语言:

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

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
}
清风疏影 2025-02-03 05:56:14

如果您想将其关闭。

在Windows/Linux上 - 文件&GT;偏好&gt;设置
然后将“支架对配色”取消,

我将其关闭。颜色强调代码的各个部分,我几乎没有兴趣,我发现我的眼睛一直想回到它。

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.

生生不灭 2025-02-03 05:56:14

该问题与GO无关,或者任何框架

似乎都错误地安装了VS-Code扩展程序“ bracket-pair-colorizer-2”

卸载或禁用扩展名,并且支架着色将消失。

但是,就我个人而言,我更喜欢使用括号着色,因为它有助于检测函数中内容的开始和结尾

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文