Search code examples
visual-studio-codedocker-containervscode-remote

How to open local terminal when running VSCode in a Dev Container?


I'm writing code with VSCode from inside a VSCode container.

I can open terminals inside the dev container, but I can't figure out how to open a (VSCode integrated) terminal in my local machine.

I can of course open a separate terminal application like iTerm2, but it's far more convenient to use VSCode's integrated terminal panel. Is opening a local terminal possible with VSCode dev containers?


Solution

  • This solution is provided in the Accepted Answer on this SO question, so if the below helps, go and upvote that.

    Using the command palette (default ctrl+shift+p/cmd+shift+p), there is an option

    Terminal: Create New Integrated Terminal (local)

    enter image description here