
Windows Subsystem for Linux 2 (WSL 2) Tips, Tricks, and Techniques
By :

The Remote-Containers extension for Visual Studio Code sits as part of the Remote-Development extension pack alongside Remote-WSL and Remote-SSH. All of these extensions allow you to separate the user interface aspects from the code interactions, such as loading, running, and debugging your code. With Remote-Containers, we instruct Visual Studio Code to run these code interactions inside a container that we define in a Dockerfile (see Chapter 7, Working with Containers in WSL, the Introducing Dockerfiles section).
When Visual Studio Code loads our project in a dev container, it goes through the following steps:
Through these steps, we get a container image that contains the dependencies described...