Windows Terminal 支持通过多实例实现多任务管理,以下是关键操作步骤:

📌 创建多实例方法

  1. 快捷键启动
    按下 Ctrl + Shift + C 然后 Ctrl + Shift + V,粘贴命令:

    wt -new-tab -p "PowerShell" -d "C:\Windows\System32"
    

    📌 提示:可自定义参数如进程名、目录等

  2. 通过命令行参数
    直接使用:

    start "" "C:\Windows\System32\WindowsTerminal.exe" --new-tab --profile-id "PowerShell"
    

    📌 需提前在设置中配置好 profile ID

  3. 脚本批量启动
    创建 .bat 文件添加以下内容:

    @echo off
    start "" "C:\Windows\System32\WindowsTerminal.exe" -new-tab -p "PowerShell"
    start "" "C:\Windows\System32\WindowsTerminal.exe" -new-tab -p "CMD"
    

🖼️ 可视化管理技巧

📱 实际应用场景

  • 同时运行 Python 脚本与数据库客户端
  • 并行测试不同环境配置
  • 多任务监控(如日志查看 + 服务管理)

Windows_Terminal_Multi_Instance

多实例窗口排列示意图