快捷键

  • 切换 Tab 快捷键

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    
    "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": "switchToTab", "index": 0 }, "keys": "alt+1" },
        { "command": { "action": "switchToTab", "index": 1 }, "keys": "alt+2" },
        { "command": { "action": "switchToTab", "index": 2 }, "keys": "alt+3" },
        { "command": { "action": "switchToTab", "index": 3 }, "keys": "alt+4" },
        { "command": { "action": "switchToTab", "index": 4 }, "keys": "alt+5" },
        { "command": { "action": "switchToTab", "index": 5 }, "keys": "alt+6" },
        { "command": { "action": "switchToTab", "index": 6 }, "keys": "alt+7" },
        { "command": { "action": "switchToTab", "index": 7 }, "keys": "alt+8" },
        { "command": { "action": "switchToTab", "index": 8 }, "keys": "alt+9" }
    ]
  • 放置位置

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    
      {
          "profiles":
          {
          },
    
    
          // 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":
          [],
      }

分屏快捷键

分屏 创建子屏幕

  • 垂直 vertical

    • alt+shift+=
  • 水平 horizontal

    • alt+shift+-
  • 简单分屏 auto

    • alt+shift+d
  • 顶部下拉菜单

    • 按住 alt 键,再找到对应的 terminal 选项

切换 子屏幕(panes)

  • Alt + <方向键>

    • alt + <left>
    • alt + <right>
    • alt + <up>
    • alt + <down>

调节 子屏幕 大小

  • Alt + shift + <方向键>

关闭 子屏幕

  • ctrl + shift + w