Terminal LayoutsSave and restore terminal tabs, folders and splits in VS Code and Cursor. For when your agents each have a terminal and you are tired of opening them again. You leave a tab in the scheduler, a split on the client repo, another one wherever the last agent was working. Reload the window, close the editor, or lose the SSH/WSL connection, and that setup is gone. Terminal Layouts keeps the tabs and the folders, and lets you bookmark a whole set the way you would bookmark tabs in a browser. Works in VS Code, Cursor, and other VS Code-based editors, locally or over Remote SSH / WSL.
Save what you have openThe Layouts pane sits in the bottom panel, next to Terminal.
Auto-save of the live setup is off by default. Turn it on from Terminal Layouts: Options (or the Options tab in the Layouts pane) if you want every tab change written to Ctrl+Shift+5 splits the current tab and keeps the new pane in the same folder. OptionsCommand Palette → Terminal Layouts: Options, or the Options tab next to Saved layouts.
The panel + button is a normal shell. Save and auto-save record that tab and the folder it is in. The next restore opens it as a persistent tab. Closed tabs are dropped, even if their tmux session is still running. InstallOptional: install From the marketplace: search for Terminal Layouts in the Extensions view. From source:
The script picks the extensions folder of whichever editor it finds (VS Code, VS Code Server, Cursor). Reload the window. The first time, use Terminal Layouts: New Persistent Terminal so a tab is one Terminal Layouts knows about. How it worksLayouts are stored in With tmux, if it is still running after the editor dies, the next open reattaches those same panes. If the host itself shuts down, or tmux is not installed, the folders come back and the processes that were running do not. |
