温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Windows Terminal怎么安装与配置

发布时间:2022-03-21 10:17:04 来源:亿速云 阅读:181 作者:iii 栏目:开发技术

这篇“Windows Terminal怎么安装与配置”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“Windows Terminal怎么安装与配置”文章吧。

1.安装

注意:Windows Terminal 要求 Windows 10 1903 (build 18362) 及以上版本。

WT 现在已经上架 Microsoft Store,所以直接在商店里搜索安装即可。

2.配置

修改配置:

可以复制以下内容直接配置文件profiles.json:

// 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}",

    "profiles":
    {
        "defaults":
        {
            // Put settings here that you want to apply to all profiles
       "acrylicOpacity" : 0.8,
            "background" : "#000000",
            "closeOnExit" : true,
            "colorScheme" : "Campbell",
            "commandline" : "powershell.exe",
            "cursorColor" : "#FFFFFF",
            "cursorShape" : "bar",
            "fontFace" : "Courier New",
            "fontSize" : 15,
            "guid" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
            "historySize" : 9001,
            "icon" : "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
            "name" : "Windows PowerShell",
            "padding" : "0, 0, 0, 0",
            "snapOnInput" : true,
	"wordDelimiters": " /\\()\"'-,:;<>~!@#$%^&*|+=[]{}~?\u2502",
            "startingDirectory" : "%USERPROFILE%",
            "useAcrylic" : false

        },
        "list":
        [
            {
                // Make changes here to the powershell.exe profile
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "name": "Windows PowerShell",
                "commandline": "powershell.exe",
                "hidden": false
            },
            {
                // Make changes here to the cmd.exe profile
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "name": "cmd",
                "commandline": "cmd.exe",
                "hidden": false
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            }
        ]
    },

    // Add custom color schemes to this array
    "schemes": [

   {
        "name": "Tango Dark",
        "black": "#000000",
        "red": "#cc0000",
        "green": "#4e9a06",
        "yellow": "#c4a000",
        "blue": "#3465a4",
        "purple": "#75507b",
        "cyan": "#06989a",
        "white": "#d3d7cf",
        "brightBlack": "#555753",
        "brightRed": "#ef2929",
        "brightGreen": "#8ae234",
        "brightYellow": "#fce94f",
        "brightBlue": "#729fcf",
        "brightPurple": "#ad7fa8",
        "brightCyan": "#34e2e2",
        "brightWhite": "#eeeeec",
        "background": "#000000",
        "foreground": "#D3D7CF"
    },
    {
            "name": "Campbell", 
            "foreground": "#F2F2F2", 
            "background": "#0C0C0C", 
            "colors": [
                "#0C0C0C", 
                "#C50F1F", 
                "#13A10E", 
                "#C19C00", 
                "#0037DA", 
                "#881798", 
                "#3A96DD", 
                "#CCCCCC", 
                "#767676", 
                "#E74856", 
                "#16C60C", 
                "#F9F1A5", 
                "#3B78FF", 
                "#B4009E", 
                "#61D6D6", 
                "#F2F2F2"
            ]
        }, 
        {
            "name": "Solarized Dark", 
            "foreground": "#FDF6E3", 
            "background": "#073642", 
            "colors": [
                "#073642", 
                "#D30102", 
                "#859900", 
                "#B58900", 
                "#268BD2", 
                "#D33682", 
                "#2AA198", 
                "#EEE8D5", 
                "#002B36", 
                "#CB4B16", 
                "#586E75", 
                "#657B83", 
                "#839496", 
                "#6C71C4", 
                "#93A1A1", 
                "#FDF6E3"
            ]
        }, 
        {
            "name": "Solarized Light", 
            "foreground": "#073642", 
            "background": "#FDF6E3", 
            "colors": [
                "#073642", 
                "#D30102", 
                "#859900", 
                "#B58900", 
                "#268BD2", 
                "#D33682", 
                "#2AA198", 
                "#EEE8D5", 
                "#002B36", 
                "#CB4B16", 
                "#586E75", 
                "#657B83", 
                "#839496", 
                "#6C71C4", 
                "#93A1A1", 
                "#FDF6E3"
            ]
        }
],

    // Add any keybinding overrides to this array.
    // To unbind a default keybinding, set the command to "unbound"
    "keybindings": []
}

以上就是关于“Windows Terminal怎么安装与配置”这篇文章的内容,相信大家都有了一定的了解,希望小编分享的内容对大家有帮助,若想了解更多相关的知识内容,请关注亿速云行业资讯频道。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI