这就是"样式集"的作用。(参见https://github.com/tonsky/FiraCode#stylistic-sets)。Font feature settings
There is now more fine grained control over the font features. When configuring
"editor.fontLigatures": true
, VS Code would turn onliga
andcalt
. But some fonts have more settings, such as stylistic sets used by Fira Code.We now allow these font features to be explicitly controlled, for example:
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"[javascript]": { "editor.fontLigatures": "'ss02', 'ss19'", },
![Fira Code v2 stylistic sets](https://istack.dev59.com/CnWUy.webp)
我已经在使用Fira Code字体,所以我想下载字体的第二个版本并将以下行添加到编辑器设置中。
"editor.fontFamily": "Fira Code",
"editor.fontLigatures":"'zero', 'ss02', 'ss03', 'ss04', 'ss05', 'calt'",
我得到了奇怪的结果:零风格起作用,但以前正常工作的连字停止工作;其他集合根本不起作用。
如何在Visual Studio Code中使Fira Code版本2的样式集起作用?