Home > Software design >  How to specify the text font for specific file types?
How to specify the text font for specific file types?

Time:04-03

I know how to set the font family for the editor globally in VS Code.

But I don't know how to change the font for a specific type of file, e.g., *.txt with sans serif font.

Is there any way I can change the font for a specific type of file in VS Code?

CodePudding user response:

VS Code supports VS Code screenshot of 3 files with different fonts

To check which [language-type] does VS Code map an opened file, see the displayed language from the status bar:

VS Code status bar screenshot

  • Related