How to specify bold font in VS Code editor?

前端 未结 3 724
一生所求
一生所求 2021-02-13 16:22

How to specify a bold font in VS Code\'s settings.json? For example, I have Envy Code R and Envy Code R Bold (exact names

相关标签:
3条回答
  • 2021-02-13 16:36

    This is a bug with Atom: https://github.com/atom/atom/issues/3790

    A workaround is to strip spaces and add a hyphen between the font name and the weight.

    Envy Code R Bold == EnvyCodeR-Bold
    

    ref: https://github.com/Microsoft/vscode/issues/381#issuecomment-163356103

    0 讨论(0)
  • 2021-02-13 16:47

    Alternative way:

    On MAC go to Code -> Preferences -> Settings or press shortcut CMD + ,

    In search bar just write font and you should find:

    Editor: Font Weight

    And from there you can choose your font weight from 100 to 900

    0 讨论(0)
  • 2021-02-13 16:50

    In your settings.json .vscode add this line:

    "editor.fontWeight": "bold"
    
    0 讨论(0)
提交回复
热议问题