1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
| // 最外层的都是全局属性,配置的指影响全局 { "$schema": "https://aka.ms/terminal-profiles-schema", "alwaysShowTabs" : true, "defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", // 配置打开新标签页时使用的是哪个profile,值对应profiles里对象的guid "initialCols" : 120, "initialRows" : 30, "keybindings" : // 配置快捷键的地方 [ { "command" : "closeTab", "keys" : [ "ctrl+w" ] }, { "command" : "newTab", "keys" : [ "ctrl+t" ] } ], "requestedTheme" : "system", "showTabsInTitlebar" : true, "showTerminalTitleInTitlebar" : true, "profiles" : // 每个终端的配置 [ { "acrylicOpacity" : 0.9, // "background" : "#012456", "closeOnExit" : true, "colorScheme" : "Solarized Dark", // 颜色主题,对应的是schemes对象的name值 "commandline" : "powershell.exe", // 打开时执行的命令 "cursorColor" : "#FFFFFF", "cursorShape" : "bar", "fontFace" : "Consolas", // 字体 "fontSize" : 10, // 字体大小 "guid" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", // 终端guid "historySize" : 9001, "icon" : "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png", "name" : "Windows PowerShell", // 终端名 "padding" : "0, 0, 0, 0", "snapOnInput" : true, "startingDirectory" : "%USERPROFILE%", "useAcrylic" : false // 透明背景 } ], "schemes" : // 主题样式 [ { "background" : "#0C0C0C", // 背景颜色 "black" : "#0C0C0C", "blue" : "#0037DA", "brightBlack" : "#767676", "brightBlue" : "#3B78FF", "brightCyan" : "#61D6D6", "brightGreen" : "#16C60C", "brightPurple" : "#B4009E", "brightRed" : "#E74856", "brightWhite" : "#F2F2F2", "brightYellow" : "#F9F1A5", "cyan" : "#3A96DD", "foreground" : "#CCCCCC", //前景颜色 "green" : "#13A10E", "name" : "Campbell", //主题名称 "purple" : "#881798", "red" : "#C50F1F", "white" : "#CCCCCC", "yellow" : "#C19C00" } ] }
|