Change bracket highlight weight in VS Code to be more visible

落花浮王杯 提交于 2019-12-08 07:20:35

问题


I'm just getting VS Code set up to use, one of the things I like to have is highlighting that's visible so I don't have to really look for it. I have the editor.matchBrackets setting set to true, so my brackets are highlighted when one is selected. However, the highlighting is so faint (very thin lines) that it's hard to see (I'm using the Dark+ theme, one of the default themes). Is there a way to affect the bracket highlighting, such as the color, line size, etc, so that it's easy to see?

Thanks.


回答1:


Unfortunately, you can't do that.

You should look for another Theme that fit your needs, or maybe upvote this issue in VS Code repo which seems similar to your needs. This issue also suggest install an extension that colorize brackets. It's not a solution, but might help.




回答2:


You can try this extension Subtle Brackets by modifying the following the default values in the .json settings of VS Code:

I changed it like this:

"subtleBrackets.bracketPairs": [
    "{}",
    "[]",
    "()",
    "<>"
],
"subtleBrackets.styles": {
    "global": {
        "color": "yellow",
        "borderWidth": "1px",
        "borderStyle": "none none solid none"
    }
}

Don't forget to set to "false" the value of .matchbrackets of VS Code.

"editor.matchBrackets": false


来源:https://stackoverflow.com/questions/43075393/change-bracket-highlight-weight-in-vs-code-to-be-more-visible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!