
The following diagram depicts the overall solution. We are going to use the WSL 2 because as opposed to the WSL 1, which could not run the Docker Engine directly inside of the WSL, the WSL 2 is able to run the Docker Engine, thanks to it’s implementation of a real Linux kernel inside a lightweight virtual machine (VM). This blog post will walk you through the steps required to set up VS Code to use the WSL 2 and AL2. On the developer side of the solution, VS Code combines the simplicity of a source code editor with developer-friendly features such as IntelliSense or code completion and debugging. Targeting AL2 allows a developer to gain the benefits associated with AL2 – support for the latest EC2 features as well as better performing workloads due to the tuned Linux kernel. I am not sure if step 2 is required or whether this just worked by chance for me and maybe can not be reproduced, but it might be worth a try.When a developer needs to target Amazon Linux 2 (AL2) to run their code but they only have access to a Windows development environment, they can use the Windows Subsystem for Linux (WSL) and Visual Studio Code (VS Code) to accomplish that. Modify and add the workloads and components you need for this installation.

The new minor version should appear in the list. On the developer computer, run the Visual Studio Installer.Copy the corresponding folder inside %USERPROFILE%\AppData\Local\Microsoft\VisualStudio\Packages\_Instances\ to the same place on the developer computer.


