reason
vs code
Is produced by Microsoft code editor, it is very powerful.- Use
docker
build programming environment, people can work to ensure the consistency of the programming environment, easy migration. In
vs code
use,docker
the debugger is very convenient.installation
- vs code
- docker
vs code
docker plug
After installation, startupdocker
, thevs code
can thedocker
management and image container.Connections container
vs code
It comes with manydocker
programming environments. Press theF1
selectRemote-Containers: Open Folder in Container...
command, open the folder, and then select the
vs code
programming environment provides.
If this is the first time you run the programming environment, you will first make docker mirror, and some will be a bit time-consuming.
Once created, the folder will open in the container, a local debugger and debug exactly the same as in the container.
There are other commands such as an existing folder connected to the container, not described herein, see Remote Container .