在设置里面打开setting.json
文件
在大括号后面追加下面的代码
// 去除斜体注释
"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”,
}
},
]
},
标签:comment,fontStyle,斜体,vscode,注释,italic,去除
From: https://www.cnblogs.com/oaoa/p/17456179.html