赞
踩
目前的 Windows Terminal 配置还只能以 json 文本方式编辑,后续新版会增加 UI 设置界面,那时候配置会方便很多
这里备份下当前的配置,点击菜单栏下拉菜单的 Settings 或者快捷键 “Ctrl + ,” 打开配置文件 settings.json
将 defaultProfile 值替换为下方 profiles 中你要的 guid 值,并设置终端窗口默认宽高
- {
- "$schema": "https://aka.ms/terminal-profiles-schema",
-
- "defaultProfile": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
-
- "initialCols": 90,
- "initialRows": 25,
-
- ...
- }
profiles 下多个终端配置排列对应实际在菜单栏看到的排列顺序
- "profiles":
- {
- "defaults":
- {
- "useAcrylic": true,
- "acrylicOpacity": 0.7,
- "fontFace": "Cascadia Code PL",
- "fontSize": 10,
- "cursorShape" : "underscore",
- "cursorColor" : "#000000",
- "historySize": 999999,
- "selectionBackground": "#EE3A8C",
- "colorScheme": "One Half Light"
- },
- "list":
- [
- {
- "guid": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
- "name": "Ubuntu-20.04",
- "source": "Windows.Terminal.Wsl",
- "icon": "C:\\Users\\Gelomen\\ubuntu.ico",
- "hidden": false
- },
- ...
- }
推荐两个配色网站:TerminalSplash 和 Windows Terminal Themes
- {
- ...
-
- "schemes": [
- {
- "name": "Cobalt2",
- "black": "#000000",
- "red": "#ff0000",
- "green": "#38de21",
- "yellow": "#ffe50a",
- "blue": "#1460d2",
- "purple": "#8A2BE2",
- "cyan": "#00bbbb",
- "white": "#bbbbbb",
- "brightBlack": "#555555",
- "brightRed": "#f40e17",
- "brightGreen": "#3bd01d",
- "brightYellow": "#edc809",
- "brightBlue": "#5555ff",
- "brightPurple": "#ff55ff",
- "brightCyan": "#6ae3fa",
- "brightWhite": "#ffffff",
- "background": "#132738",
- "foreground": "#ffffff"
- },
- {
- "name" : "Frost",
- "background" : "#FFFFFF",
- "black" : "#3C5712",
- "blue" : "#17b2ff",
- "brightBlack" : "#749B36",
- "brightBlue" : "#27B2F6",
- "brightCyan" : "#13A8C0",
- "brightGreen" : "#89AF50",
- "brightPurple" : "#F2A20A",
- "brightRed" : "#F49B36",
- "brightWhite" : "#741274",
- "brightYellow" : "#991070",
- "cyan" : "#3C96A6",
- "foreground" : "#000000",
- "green" : "#6AAE08",
- "purple" : "#991070",
- "red" : "#8D0C0C",
- // "white" : "#6E386E",
- "white" : "#FFFFFF",
- "yellow" : "#991070"
- }
- ],
-
- ...
- }
但我目前使用的是内置配色 One Half Light,内置配色直接设置即可:
"colorScheme": "One Half Light"
- {
- ...
- "keybindings": [
- {
- "command": "closeTab",
- "keys" : [
- "ctrl+w"
- ]
- },
- {
- "command":
- {
- "action": "splitPane",
- "split": "horizontal"
- },
- "keys": "ctrl+-"
- },
- {
- "command":
- {
- "action": "splitPane",
- "split": "vertical"
- },
- "keys": "ctrl+plus"
- }
- ]
- ...
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。