Skip to content

Wiki

VSCode remote development

About 2 min read

How can I remotely develop a system in a container in VSCode, just like with SSH?

Just use the VSCode extension. The above tutorial has already taught you how to install the extension, so now you can use the extension directly.

alt text

After performing the operations in the above figure, our VScode is already controlling the Ubuntu24 container.

alt text

The previous run command has already mounted the local disk's /home/用户名path, so the local project can be easily accessed within the Docker container.

alt text

Input/home/You can see that your host machine's user directory is also mounted into the Docker Ubuntu 24, so all code can be stored here, while the development environment is the Ubuntu 24 inside Docker.