How to put a terminal in the VS Code or Cursor sidebar

VS Code's built-in terminal is awkward to reposition and can't live in the sidebar. Portaterm is a free extension that gives you a real terminal you can place in the primary sidebar, the secondary sidebar, the bottom panel, or an editor tab.

1. Install Portaterm

In VS Code, search Portaterm in the Extensions view or install it from the Marketplace. In Cursor, Windsurf, Antigravity, or VSCodium, search Portaterm too — it comes from Open VSX. You need VS Code 1.105+ or Cursor 3.2.21+.

Click the Portaterm icon in the Activity Bar. The view opens in the primary sidebar and a shell session starts automatically, in your workspace folder.

Portaterm in a VS Code sidebar: three terminal tabs, a hover preview of a source file opened from a path in the terminal output, and the embedded file tree below.

3. Move it anywhere else

Each location remembers its own state, and you can drag the view between them at any time.

4. Add tabs and split panes

Use the view's title bar to add tabs or split the terminal horizontally or vertically. Splits are recursive and resizable by dragging. A few things that help in a narrow sidebar:

Common questions

Does the terminal keep running when I reload the window?

Yes. Shells stay alive across window reloads. After a full restart, scrollback, tab names, working directory, and layout are restored, though the shell process itself starts fresh. See session restore.

Which shell does it use?

The same default shell as your editor. To choose another, set portaterm.shell.macOS, portaterm.shell.linux, or portaterm.shell.windows. See settings.

Does it follow my theme?

Yes. Portaterm is WebGL rendered and follows your dark, light, or high-contrast theme. Font size and family are inherited from the editor unless you set portaterm.fontSize or portaterm.fontFamily.

Next: browse and resume your Claude Code, Codex, and OpenCode sessions from the same terminal.

Last updated October 29, 2026.