// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"theme": "dark",
"confirmCloseAllTabs": false,
"copyOnSelect": true,
"copyFormatting": true,
// To learn more about profiles, visit https://aka.ms/terminal-profile-settings
"profiles": {
"defaults": {
// turn off the beep
"bellStyle": "none",
"cursorShape": "underscore",
"colorScheme": "One Half Dark",
"background": "#1e1e1e",
"selectionBackground": "#1062cc",
"fontFace": "fira code retina",
"fontSize": 13,
"icon": null,
"historySize": 1024
},
"list": [
{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "PS5",
"hidden": true,
"commandline": "powershell.exe"
},
{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "PS6",
"hidden": false,
"source": "Windows.Terminal.PowershellCore"
},
{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Cmd",
"hidden": false,
"commandline": "cmd.exe"
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"name": "Azure Cloud Shell",
"hidden": true,
"source": "Windows.Terminal.Azure"
}
]
},
// To learn more about color schemes, visit https://aka.ms/terminal-color-schemes
"schemes": [],
// To learn more about keybindings, visit https://aka.ms/terminal-keybindings
"keybindings": [
{ "command": "paste", "keys": "alt+insert" },
{ "command": "find", "keys": "alt+f" },
{ "command": "closeTab", "keys": "ctrl+w" },
{ "command": "newTab", "keys": "ctrl+t" },
{ "command": "openSettings", "keys": "ctrl+," },
{ "command": "toggleFullscreen", "keys": "alt+enter" },
{ "command": "toggleFullscreen", "keys": "f11" },
{ "command": "nextTab", "keys": "ctrl+alt+left" },
{ "command": "prevTab", "keys": "ctrl+alt+right" },
{
"command": { "action": "switchToTab", "index": 0 },
"keys": "alt+1"
},
{
"command": { "action": "switchToTab", "index": 1 },
"keys": "alt+2"
},
{
"command": { "action": "switchToTab", "index": 2 },
"keys": "alt+3"
},
{
"command": { "action": "switchToTab", "index": 3 },
"keys": "alt+4"
},
{ "command": { "action": "switchToTab", "index": 4 }, "keys": "alt+5" }
]
}
参考
- https://zhuanlan.zhihu.com/p/258825679
- https://docs.microsoft.com/zh-cn/windows/terminal/customize-settings/actions