I have encountered some issues for setting up SF Mono font in VS Code.
Add the following configuration in settings.json
"editor.fontFamily": "SF Mono"
The font seems to be bold, and changing "editor.fontWeight"
to 100
doesn't help.
"editor.fontFamily": "SFMono-Regular"
The texts have regular font weights now, but the comment is still bold.
Try to configure the comment text separately.
"editor.fontFamily": "SFMono-Regular",
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "comment",
"settings": {
"fontStyle": "normal"
}
}
]
}
It seems configuring comment texts to normal
gives them regular font weight.
My question is how to have regular SF Mono weights while having italic comments?
To use SF Mono in VS Code:
SF Mono
as your preferred font. My config is SF Mono, Menlo, Monaco, 'Courier New', monospace
SF Mono should display properly, with the correct weight italics.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With