Windows Terminal (Preview) 您所在的位置:网站首页 notion怎么修改文字大小 Windows Terminal (Preview)

Windows Terminal (Preview)

2023-04-20 17:11| 来源: 网络整理| 查看: 265

配置主题样式标题卡A.打开设置B.配置标题卡数据C.配置快捷键D.配置文件模板E.更多配置参数参看官网

Window Terminal

配置主题样式标题卡

A.打开设置

B.配置标题卡数据

以json格式配置选项卡信息**

属性 值类型 值意义 name String 卡片标题名称 guid String 全局唯一ID值,用于读取ID值对应的配置当作全局的配置 startingDirectory String 命令行的执行绝对路径 commandline String 可执行的程序名称以及可配置必要的参数值 icon String 选项卡的标题图标,文件必须ico格式的图片文件 experimental.retroTerminalEffect boolean 怀旧风格-毛玻璃效果 backgroundImage String 背景图片 backgroundImageOpacity String 背景图片虚化程度 fontFace String 字体 fontSize String 字体大小 padding String 窗口位置 hidden boolean 是否隐藏 { "name": "标题卡名称", "guid": "{全局唯一ID值}", "startingDirectory": "可执行程序的起始目录", "commandline": "可执行文件名称以及必要的参数值", "icon": "选项卡的图标文件,必须是ico格式的图片文件"},

C.配置快捷键"keybindings":[ // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json. // These two lines additionally bind them to Ctrl+C and Ctrl+V. // To learn more about selection, visit https://aka.ms/terminal-selection { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" }, { "command": "paste", "keys": "ctrl+v" }, // Press Ctrl+Shift+F to open the search box { "command": "find", "keys": "ctrl+f" }, // Press Alt+Shift+D to open a new pane. // - "split": "auto" makes this pane open in the direction that provides the most surface area. // - "splitMode": "duplicate" makes the new pane use the focused pane's profile. // To learn more about panes, visit https://aka.ms/terminal-panes { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }, // 定义在当前Tab打开新的命令窗格 { "command": { "action": "splitPane", "split": "vertical" }, "keys": "alt+shift+plus" }, { "command": { "action": "splitPane", "split": "horizontal" }, "keys": "alt+shift+-" }, { "command": { "action": "splitPane", "split": "auto" }, "keys": "alt+shift+|" }, // 定义关闭命令窗格的命令 { "command": "closePane", "keys": "ctrl+shift+w" }, // 定义调整命令窗格高宽的快捷键 { "command": { "action": "resizePane", "direction": "down" }, "keys": "alt+shift+down" }, { "command": { "action": "resizePane", "direction": "left" }, "keys": "alt+shift+left" }, { "command": { "action": "resizePane", "direction": "right" }, "keys": "alt+shift+right" }, { "command": { "action": "resizePane", "direction": "up" }, "keys": "alt+shift+up" }, // 定义鼠标光标定位的窗格 { "command": { "action": "moveFocus", "direction": "down" }, "keys": "alt+down" }, { "command": { "action": "moveFocus", "direction": "left" }, "keys": "alt+left" }, { "command": { "action": "moveFocus", "direction": "right" }, "keys": "alt+right" }, { "command": { "action": "moveFocus", "direction": "up" }, "keys": "alt+up" }]

D.配置文件模板// This file was initially generated by Windows Terminal (Preview) 1.0.1402.0// It should still be usable in newer versions, but newer versions might have additional// settings, help text, or changes that you will not see unless you clear this file// and let us generate a new one for you.// To view the default settings, hold "alt" while clicking on the "Settings" button.// For documentation on these settings, see: https://aka.ms/terminal-documentation{ "$schema": "https://aka.ms/terminal-profiles-schema", "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", // You can add more global application settings here. // To learn more about global settings, visit https://aka.ms/terminal-global-settings // If enabled, selections are automatically copied to your clipboard. "copyOnSelect": false, // If enabled, formatted data is also copied to your clipboard "copyFormatting": false, // A profile specifies a command to execute paired with information about how it should look and feel. // Each one of them will appear in the 'New Tab' dropdown, // and can be invoked from the commandline with `wt.exe -p xxx` // To learn more about profiles, visit https://aka.ms/terminal-profile-settings "profiles": { "defaults": { // Put settings here that you want to apply to all profiles. // 设置所有命令窗口的背景图片 //"backgroundImage": "C:\\Users\\fcsca\\OneDrive\\图片\\proxy\\90d58f0c09a9cbbd18e98dcf2aea0ec9.jpg", // 设置命令窗口的怀旧风格 "experimental.retroTerminalEffect": false, "backgroundImage": "C:\\Users\\fcsca\\OneDrive\\图片\\proxy\\keyboard-886462.jpg", "backgroundImageOpacity": 0.2, "fontFace": "Cascadia Mono PL", "fontSize": 14, "padding": "8, 8, 8, 8", "hidden": false }, "list": [ { // Make changes here to the powershell.exe profile. "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "name": "Windows PowerShell", "commandline": "powershell.exe", // 毛玻璃效果 "experimental.retroTerminalEffect": false }, { // Make changes here to the cmd.exe profile. "name": "CMD", "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "commandline": "cmd.exe" }, { "name": "MySQL Of LocalHost", "guid": "{1caa0dad-35be-5f56-a8ff-afceeeaa6121}", "startingDirectory": "D:\\LinkSpace\\Download\\DevelopPackage\\MySQL\\mysql-8.0.16-winx64\\mysql-8.0.16-winx64\\bin", "commandline": "mysql -uroot -p123456", "icon": "C:\\Users\\fcsca\\OneDrive\\图片\\ICON\\favicon.ico" }, { "name": "MySQL Of ZRKC Server", "guid": "{1caa0dad-35be-5f56-a8ff-afceeeaa6102}", "startingDirectory": "D:\\LinkSpace\\Download\\DevelopPackage\\MySQL\\mysql-8.0.16-winx64\\mysql-8.0.16-winx64\\bin", "commandline": "mysql -h127.0.0.1 -p3306 -uroot -p123456", "icon": "C:\\Users\\fcsca\\OneDrive\\图片\\ICON\\ico\\images\\favicon78.ico" }, { "name": "Redis Master Client", "guid": "{1caa0dad-35be-5f56-a8ff-afceeeaa6111}", "startingDirectory": "D:\\LinkSpace\\Download\\DevelopPackage\\Redis\\Redis-x64-3.2.100", "commandline": "redis-cli -p 6379", "icon": "C:\\Users\\fcsca\\OneDrive\\图片\\ICON\\ico\\images\\favicon.ico" }, { "name": "Redis Slave Server Run", "guid": "{1caa0dad-35be-5f56-a8ff-afceeeaa6321}", "startingDirectory": "D:\\LinkSpace\\Download\\DevelopPackage\\Redis\\Salve\\Redis-x64-3.2.100", "commandline": "redis-server redis.windows.conf", "icon": "C:\\Users\\fcsca\\OneDrive\\图片\\ICON\\ico\\images\\favicon36.ico" }, { "name": "Redis Slave Client", "guid": "{1caa0dad-35be-5f56-a8ff-afceeeaa6311}", "startingDirectory": "D:\\LinkSpace\\Download\\DevelopPackage\\Redis\\Redis-x64-3.2.100", "commandline": "redis-cli -p 6380", "icon": "C:\\Users\\fcsca\\OneDrive\\图片\\ICON\\ico\\images\\favicon546.ico" }, { "name": "ALiYun Cloud Server", "guid": "{1caa0dad-35be-5f56-a8ff-bfcffeaa6311}", "commandline": "ssh [email protected] -o ServerAliveInterval=30", "icon": "C:\\Users\\fcsca\\OneDrive\\图片\\ICON\\TO\\sakura_128px_1288334.ico" }, { "name": "Pro Run Path", "guid": "{1caa0dad-35be-5f56-a8ff-bfceeeaa6311}", "startingDirectory": "D:\\LinkSpace\\Work\\WorkSpace\\Code\\IDEA\\finchain-web", "commandline": "powershell", "icon": "C:\\Users\\fcsca\\OneDrive\\图片\\ICON\\ico\\character\\favicon.ico" }, { "name": "Azure Cloud Shell", "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "source": "Windows.Terminal.Azure" } ] }, // Add custom color schemes to this array. // To learn more about color schemes, visit https://aka.ms/terminal-color-schemes "schemes": [], // Add custom keybindings to this array. // To unbind a key combination from your defaults.json, set the command to "unbound". // To learn more about keybindings, visit https://aka.ms/terminal-keybindings "keybindings": [ // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json. // These two lines additionally bind them to Ctrl+C and Ctrl+V. // To learn more about selection, visit https://aka.ms/terminal-selection { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" }, { "command": "paste", "keys": "ctrl+v" }, // Press Ctrl+Shift+F to open the search box { "command": "find", "keys": "ctrl+f" }, // Press Alt+Shift+D to open a new pane. // - "split": "auto" makes this pane open in the direction that provides the most surface area. // - "splitMode": "duplicate" makes the new pane use the focused pane's profile. // To learn more about panes, visit https://aka.ms/terminal-panes { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }, // 定义在当前Tab打开新的命令窗格 { "command": { "action": "splitPane", "split": "vertical" }, "keys": "alt+shift+plus" }, { "command": { "action": "splitPane", "split": "horizontal" }, "keys": "alt+shift+-" }, { "command": { "action": "splitPane", "split": "auto" }, "keys": "alt+shift+|" }, // 定义关闭命令窗格的命令 { "command": "closePane", "keys": "ctrl+shift+w" }, // 定义调整命令窗格高宽的快捷键 { "command": { "action": "resizePane", "direction": "down" }, "keys": "alt+shift+down" }, { "command": { "action": "resizePane", "direction": "left" }, "keys": "alt+shift+left" }, { "command": { "action": "resizePane", "direction": "right" }, "keys": "alt+shift+right" }, { "command": { "action": "resizePane", "direction": "up" }, "keys": "alt+shift+up" }, // 定义鼠标光标定位的窗格 { "command": { "action": "moveFocus", "direction": "down" }, "keys": "alt+down" }, { "command": { "action": "moveFocus", "direction": "left" }, "keys": "alt+left" }, { "command": { "action": "moveFocus", "direction": "right" }, "keys": "alt+right" }, { "command": { "action": "moveFocus", "direction": "up" }, "keys": "alt+up" } ]}

E.更多配置参数参看官网

https://docs.microsoft.com/zh-cn/windows/terminal/customize-settings/profile-settings



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有