在VS Code设置中,我配置了一些字段。这些将是字体和字体大小。通常,我将它们都设置为相同。我正在尝试在settings.json中设置一个变量,该变量可以应用于所有变量。在通读了Variables Reference的VS Code之后,我想到了以下内容:
{
"common": [
{
"font": "Anonymous Pro","fontSize": 10,}
],// Set up the Editor
"editor.fontFamily": "${common:font}","editor.fontSize": "${common:fontSize}","terminal.integrated.fontFamily": "${common:font}","terminal.integrated.fontSize": "${common:fontSize}","debug.console.fontFamily": "${common:font}","debug.console.fontSize": "${common:fontSize}",}
尽管如此,这似乎不起作用。有没有一种方法可以在settings.json中设置变量而不必设置环境变量?
谢谢!