在 VS Code 设置中,有一些字段我配置相同。这些就是字体和字体大小。一般来说,我将它们全部设置为相同。我正在尝试在 settings.json 中设置一个可以应用于所有变量的变量。读完后变量参考 https://code.visualstudio.com/docs/editor/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 中设置变量而无需设置环境变量?
目前您无法在settings.json
file.
目前 VS Code 实现此功能的未决问题在这里:https://github.com/microsoft/vscode/issues/2809 https://github.com/microsoft/vscode/issues/2809
它尚未有 PR,该问题于 2016 年 2 月开始,但在过去 2 个月内发表了评论。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)