【问题标题】:How can I save my terminal's tabs in memory for the next use?如何将终端的选项卡保存在内存中以备下次使用?
【发布时间】:2021-11-20 08:11:29
【问题描述】:

我想在内存中保存或设置我的终端设置,这样当我关闭 IDE 时,我可以稍后再返回。

【问题讨论】:

    标签: visual-studio-code cmd terminal


    【解决方案1】:

    我更喜欢在 vscode 中使用Restore Terminals

    安装扩展后,您可以在.vscode文件夹中创建一个restore-terminals.json文件:

    {
      "artificialDelayMilliseconds": 300,
      "keepExistingTerminalsOpen": false,
      "runOnStartup": true,
      "terminals": [
        {
          "splitTerminals": [
            {
              "name": "server",
              "commands": ["npm i", "npm run dev"]
            },
            {
              "name": "client",
              "commands": ["npm run dev:client"]
            },
            {
              "name": "test",
              "commands": ["jest --watch"]
            }
          ]
        },
        {
          "splitTerminals": [
            {
              "name": "build & e2e",
              "commands": ["npm run eslint", "npm run build", "npm run e2e"],
              "shouldRunCommands": false
            },
            {
              "name": "worker",
              "commands": ["npm-run-all --parallel redis tsc-watch-start worker"]
            }
          ]
        }
      ]
    }
    
    

    【讨论】:

      猜你喜欢
      • 2018-06-03
      • 1970-01-01
      • 2016-11-05
      • 2014-03-11
      • 2019-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多