【问题标题】:How to start the new Windows Terminal with multiple panes by default?默认情况下如何使用多个窗格启动新的 Windows 终端?
【发布时间】:2020-06-09 13:01:22
【问题描述】:

是否有默认将新的 Windows 终端拆分为多个窗格的设置?例如从两列开始,第二列分成两个水平部分?

【问题讨论】:

    标签: windows-terminal


    【解决方案1】:

    This feature 目前处于预览模式,它的工作方式将来可能会改变,但目前这可以通过将startupActions 添加到您的 settings.json 来完成。

    例如,要从两个窗格开始,垂直拆分并将光标移动到左侧窗格(默认将停留在最后创建的窗格上),您的 settings.json 应如下所示:

    {
      "$schema": "https://aka.ms/terminal-profiles-schema",
      "defaultProfile": "{00000000-0000-0000-0000-000000000001}",
      "launchMode": "maximized",
      "startupActions": "split-pane; move-focus left", // This is the new line you need
      "profiles": {
        "defaults": {
        },
        "list": [
          {
            "guid": "{00000000-0000-0000-0000-000000000001}",
            "acrylicOpacity": 0.9,
            "useAcrylic": true,
            "closeOnExit": true,
            "colorScheme": "Solarized Dark",
            "commandline": "\"%PROGRAMFILES%\\Git\\usr\\bin\\bash.exe\" --login -i -l",
            "cursorColor": "#FFFFFF",
            "cursorShape": "bar",
            "fontFace": "Consolas",
            "fontSize": 10,
            "historySize": 9001,
            "icon": "%PROGRAMFILES%\\Git\\mingw64\\share\\git\\git-for-windows.ico",
            "name": "GitBash",
            "padding": "15, 5, 10, 55",
            "snapOnInput": true,
            "startingDirectory": "%USERPROFILE%\\Desktop"
          }
        ]
      },
      "schemes": [],
      "keybindings": []
    }
    

    您可以使用的Some of the commandsnew-tabsplit-panefocus-tabmove-focus...

    【讨论】:

      猜你喜欢
      • 2020-12-30
      • 2020-06-09
      • 1970-01-01
      • 2011-01-31
      • 2020-12-03
      • 1970-01-01
      • 1970-01-01
      • 2022-01-15
      • 1970-01-01
      相关资源
      最近更新 更多