skip to Main Content

I’m sorry if this is a question already answered or if this kind of questions are not allowed.

I have been trying to figure out how to change the font (cursive like Fira Code iScript) in VS Code for Python like people have done for HTML and other languages to make it look prettier.
Image

Attempts and Research

I spent last 3 hours to figure this out and watched multiple tutorials, but nothing seems to work for me. Now I have doubts that if it even works for Python in VS code.

I watched multiple tutorials on YouTube and other websites to figure it out but it just doesn’t work for me.

2

Answers


  1. This depends on your Syntax Highlighting theme. Either find the one that already has this text stylized or edit your current one to do it.

    The parameter you need to set in there is called "fontStyle" and you need to set it as "italic" for all entities you want. You can find more about it in the Visual Studio Code documentation

    This sounds difficult but it’s not really, just bit time consuming. Fastest way would be of course finding a theme that already has it set though 🙂 Good luck!

    Login or Signup to reply.
  2. Modify the font through editor: Font Family in the Settings

    enter image description here

    or add the following configuration in settings.json.

        "editor.fontFamily": "Ink Free,Consolas, 'Courier New', monospace",
    

    enter image description here

    The configuration content needs to be modified to the font name you need.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search