我在用户设置中遇到过这个"editor.fontFamily": "Consolas, 'Courier New', monospace",
但有什么办法只改变评论的字体吗?我在其他编辑器中看到人们有半草书评论,我希望能够复制类似的内容。
您可以更改字体style与editor.tokenColorCustomizations
环境:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "comment",
"settings": {
"fontStyle": "italic"
}
}
]
}
我不认为有办法改变字体family现在。该设置仅允许自定义fontStyle
and foreground
(文字颜色)。不过,有一个开放的功能请求来添加对其的支持:
支持 textMateRules 中的 fontName (#36512) https://github.com/Microsoft/vscode/issues/36512
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)