How do I get Visual Studio Code to display italic fonts in formatted code?

后端 未结 10 975
旧时难觅i
旧时难觅i 2020-12-22 16:22

How do I configure VS Code to support italic styles, like in this picture?

\"\"

My current settings:

10条回答
  •  攒了一身酷
    2020-12-22 16:41

    The following code is fine

    {
      "editor.fontLigatures": true,
      "editor.fontFamily": "Operator Mono"
    }
    

    You must have Operator Mono installed on your computer for that to work. It can be downloaded here: https://www.typography.com/fonts/operator/styles/ Current price at the time of writing this is $599.00 for one machine.

    If you have the fonts installed and have restarted Visual Studio Code, try changing your theme. Some themes do not support the italic style.

提交回复
热议问题