vscode auto attach tmux session - jenhaoyang/backend_blog GitHub Wiki

{
  "terminal.integrated.shell.linux": "/usr/bin/tmux",
  "terminal.integrated.shellArgs.linux": [
    "new-session",
    "-A",
    "-s",
    "main"
  ],
}

參考:
https://medium.com/@joaomoreno/persistent-terminal-sessions-in-vs-code-8fc469ed6b41
https://www.zdyn.net/system/hacks/2020/09/19/vscode-term-session.html