我可以在 VSCode 中为斜体字体样式设置一个字体系列,为其他字体样式设置另一个字体系列吗?

Can I set a font family for italic font style and another font family for other font styles in VSCode?

我只想将“Operator Mono”字体用于斜体字体样式和其他字体样式:“粗体、常规、半粗体...”我想使用“ Fira 代码”字体。我可以在 VSCode 中实现吗?

我曾尝试将字体系列更改为:

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

但是没有用,编辑器只显示 'Fira Code' 字体系列。

最后,我找到了一个解决方案:vscode-custom-css,您可以编写 CSS 代码来自定义您的编辑器。

感谢soulshined,没有你的提示我找不到最终的解决方案。

这是我的最终结果:Gist