https://github.com/PowerShell/PowerShell/releases

 

// This file was initially generated by Windows Terminal 1.0.1401.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": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
 
    // 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":
        {
            "useAcrylic": true,
            "acrylicOpacity": 0.3
            // Put settings here that you want to apply to all profiles.
        },
        "list":
        [
            {
                "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
                "hidden": false,
                "name": "PowerShell 7",
                "source": "Windows.Terminal.PowershellCore"
            },
            {
                "guid": "{8d89a9a6-1eea-50a1-b236-d45513f08881}",
                "hidden": false,
                "name": "CentOS8",
                "source": "Windows.Terminal.Wsl"
            },
            {
                "guid": "{1c4de342-38b7-51cf-b940-2309a097f589}",
                "hidden": false,
                "name": "Git-Bash",
                "commandline":"C:\\Program Files\\Git\\bin\\bash.exe",
                "icon":"C:\\Program Files\\Git\\git-bash.png",
                "startingDirectory":"D:\\"
            },
            {
 
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "name": "命令提示符",
                "commandline": "cmd.exe",
                "hidden": false
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            },
            {
                // Make changes here to the powershell.exe profile.
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "name": "Windows PowerShell",
                "commandline": "PowerShell.exe",
                "hidden": false
            },
            {
                "guid": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
                "hidden": false,
                "name": "Ubuntu-20.04",
                "source": "Windows.Terminal.Wsl"
            }
        ]
    },
 
    // 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+shift+c" },
        { "command": "paste", "keys": "ctrl+shift+v" },
 
        // Press Ctrl+Shift+F to open the search box
        { "command": "find", "keys": "ctrl+shift+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" },
        { "command": { "action": "splitPane", "split": "vertical" }, "keys": "alt+shift+v" },
        { "command": { "action": "splitPane", "split": "horizontal" }, "keys": "alt+shift+h" },
 
        //在窗格间进行切换
        //终端允许使用键盘在窗格之间导航。 如果按住 alt 键,则可以使用箭头键在窗格之间移动焦点。 可以通过窗格周围的主题色边框来识别哪个窗格是焦点。 请注意,此主题色是在 Windows 颜色设置中设置的。
        { "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" },
 
        //调整窗格大小
        //可以按住 alt+shift 并使用箭头键调整焦点窗格的大小,从而调整窗格的大小。
        { "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" },
        //关闭窗格
        //可以键入 ctrl+shift+w 来关闭焦点窗格。 如果只有一个窗格,ctrl+shift+w 将关闭该选项卡。与往常一样,关闭最后一个选项卡将关闭该窗口。
 
        { "command": "closePane", "keys": "ctrl+shift+w" },
        //新建窗口
        { "command": "newTab", "keys": "ctrl+shift+t" }
 
 
    ]
}

  

 

相关文章:

  • 2021-09-12
  • 2021-06-27
  • 2022-12-23
  • 2021-05-06
  • 2018-03-18
  • 2021-08-03
  • 2021-06-26
猜你喜欢
  • 2022-01-12
  • 2021-08-17
  • 2021-10-15
  • 2021-05-27
  • 2022-02-17
  • 2021-10-08
相关资源
相似解决方案