VScode中修改默认的中文注释格式(包括去除斜体和修改颜色)
·
一、首先修改字体
"editor.fontFamily": "Consolas, Microsoft YaHei, monospace",

二、然后修改斜体和颜色
然后在文件中添加如下:
“editor.tokenColorCustomizations”: {
“textMateRules”: [
{
“name”: “Comment”,
“scope”: [
“comment”,
“comment.block”,
“comment.block.documentation”,
“comment.line”,
“comment.line.double-slash”,
“punctuation.definition.comment”,
],
“settings”: {
“fontStyle”: “”,
//斜体 “fontStyle”: “italic”,
//斜体下划线 “fontStyle”: “italic underline”,
//斜体粗体下划线 “fontStyle”: “italic bold underline”,
}
},
]
},
这样解决了斜体问题
在原文的"fontStyle": “”,的下一行新加一行"foreground": “#aca3a3”
修改注释的颜色

更多推荐

所有评论(0)