如何在 Visual Studio 代码中启用递归 (OpenType) 字体代码连字?
How to enable Recursive (OpenType) font code ligature in Visual Studio Code?
更具体地说
如何启用 Recursive font 的代码自由连字“dlig”功能?
通常的 fontLigatures settings.json
配置不起作用。
"editor.fontFamily": "Recursive Sans Linear"
"editor.fontLigatures": true // Do not work :-/
要启用代码连字,请使用所需的 OpenType 功能编辑 VSCode settings.json
:
// Code ligatures ON
"editor.fontLigatures": "'dlig'"
// BONUS: other feature set (see below)
"editor.fontLigatures": "'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'zero', 'onum'"
来源:
Stephen Nixon's article on recursive.design
另请参阅:
Microsoft OpenType spec
更具体地说
如何启用 Recursive font 的代码自由连字“dlig”功能?
通常的 fontLigatures settings.json
配置不起作用。
"editor.fontFamily": "Recursive Sans Linear"
"editor.fontLigatures": true // Do not work :-/
要启用代码连字,请使用所需的 OpenType 功能编辑 VSCode settings.json
:
// Code ligatures ON
"editor.fontLigatures": "'dlig'"
// BONUS: other feature set (see below)
"editor.fontLigatures": "'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'zero', 'onum'"
来源:
Stephen Nixon's article on recursive.design
另请参阅: Microsoft OpenType spec