0
votes

I want to use "Operator Mono" font only for italic font style and for other font styles: "bold, regular, semibold..." I want to use "Fira Code" font. Can I implement this in VSCode?

I had tried to change the font family to:

"editor.fontFamily": "'Operator Mono Light Italic', 'Fira Code', Menlo, Monaco, 'Courier New', monospace"

But it not worked, the editor only show 'Fira Code' font family.

1
If you can identify what tm grammar scopes are using italic, then I think it would be pretty easy. Review the docs on how to navigate this and see if it gets you closer code.visualstudio.com/api/language-extensions/… - soulshined
I use a theme extension and I don't know what grammar scopes are using italic in this theme ... - sunny
This is doable, you’ll just have to find what your theme uses italics for and override those tokens. No one can really answer that for you. That link above talks about something called the scope inspector which will tell you the name of the scope. Once you have it you can just add it to your settings like this I only linked mine because I can find it quick, although there are way more thorough examples out there covering it. - soulshined
Thank you, I think I complete 99%. I found what's scope the theme use italics, and I update my setting file, but in the end, I can't change fontFamily attribute in settings object because VSCode did not allow it.😭 - sunny

1 Answers

0
votes

Finally, I find a solution: vscode-custom-css, you can write CSS code for custom your editor most.

Thanks for soulshined, I can't find the final solution without your tips.

This is my final result: Gist