Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 355
Chris Hayes Avatar asked Sep 11 '25 19:09

Chris Hayes


1 Answers

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

like image 120
James G Avatar answered Sep 13 '25 09:09

James G