以下是我的配置
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
// 是否复制选中的
"copyOnSelect": true,
// 是否复制格式
"copyFormatting": false,
"profiles":
{
"defaults":
{
// Put settings here that you want to apply to all profiles.
},
"list":
[
{
// 透明度
"acrylicOpacity" : 0.5,
"closeOnExit" : true,
// 主题名称
"colorScheme" : "One Half Dark",
// 打开时执行的命令
"commandline" : "ssh [email protected]",
// 光标的颜色
"cursorColor" : "#006666",
// 光标的类型
"cursorShape" : "vintage",
// 字体类型和字号
"fontFace" : "Consolas",
"fontSize" : 12,
// 由工具生成唯一id,也可手动修改,保证没一个连接配置的不一样即可
"guid" : "{592D0432-1020-4DF6-83D4-928A7BE1D31A}",
// 保存的历史数据的行数
"historySize" : 9001,
// 终端的图标、名称
"icon" : "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png",
"name" : "220",
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"startingDirectory" : "",
"useAcrylic" : false,
// 终端的背景颜色
"background": "#001126"
}
]
},
"schemes": [],
// 快捷键绑定
"keybindings":
[
{ "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" },
{ "command": "paste", "keys": "ctrl+v" },
{ "command": "find", "keys": "ctrl+f" },
{ "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }
]
}
其他具体配置请参考官方文档:https://github.com/microsoft/terminal/blob/master/doc/cascadia/SettingsSchema.md