如何为 Windows 终端中的所有配置文件设置主题?

How can I set a theme for all profiles in Windows Terminal?

我一直在试验新的 Windows 终端,我想为所有配置文件设置一些属性(PowerShell、Cmd、Azure Cloud Shell)。 具体来说,我想为每个终端配置文件设置相同的配色方案、填充等主题。

{
    "colorScheme": "One Half Dark",
    "fontFace": "Cascadia Code",
    "padding": "20"
}

我必须将这些行添加到每个配置文件中。有没有办法为所有配置文件指定一次?

可能您的个人资料是由旧版 windows 终端创建的。您可以备份您的个人资料(我在上次更新时丢失了我的个人资料)并更新它。

新配置文件已更改为 settings.jsonsettings.json 中的 profilesdefaultslist 设置。你需要的在 defaults.