如何使用斜线更改 VisualStudioCode 注释颜色? [英] How to change VisualStudioCode comment color with it's slashes?
问题描述
我将此代码添加到我的 setting.json
I added this code to my setting.json
"editor.tokenColorCustomizations": {
"comments": "#00ff00"
}
但它不会改变斜线的颜色,如下图所示.
它仍然是灰色的.
But It doesn't change the color for slashes as you can see the below screenshot.
It remains still grayed.
如何更改包含斜杠的整个评论颜色?
How can I change the whole comment color contains slashes?
推荐答案
看来注释标点颜色自定义可以更正了——也就是像//
这样的punctuation
可能包含在 2018 年 10 月版本的 comment
范围内.这是一个未解决的问题,但已添加到 2019 年 10 月的里程碑,请参阅 https://github.com/microsoft/vscode/milestone/102.
It looks like the comment punctuation colorCustomization may be corrected - that is, the punctuation
like //
may be included in the comment
scope in the October 2018 release. It is an open issue but was added to the October 2019 milestone, see https://github.com/microsoft/vscode/milestone/102.
这样注释标点符号就不再需要单独着色了.
So that the comment punctuation would no longer need to be separately colored.
截至 2019 年 10 月 25 日,它已在 Insider's Build 中修复,以便
It is fixed in the Insider's Build as of October 25, 2019 so that
"editor.tokenColorCustomizations": {
"comments": "#00ff00"
}
也会为评论正文和标点符号/标记着色.
will color the comment body and punctuation/marker as well.
这篇关于如何使用斜线更改 VisualStudioCode 注释颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!