Using VS Code Remote and the Windows Subsystem for Linux (WSL) gives you a fully featured Linux development environment on a Windows laptop or desktop. Let’s look at how using these tools will completely change how you develop with Linux tools in Windows.
First things first: Installing what you need
You will need WSL and VS Code with the VS Code Remote – WSL extension installed to complete the content in this blog post. We’ll quickly go over what both of those are, and how to install them.
The Windows Subsystem for Linux
Commonly abbreviated down to WSL, this tool lets you run unmodified Linux binaries directly on Windows. This means you can use your favorite Linux tools, command line applications and workflows on your Windows machine without having to use a complicated set up like dual booting. Best of all, WSL is a tightly integrated solution between Windows and Linux. So, if you love Linux you can access all your Windows files and executables right from the bash shell, and if you love Windows you can easily access your Linux binaries and files from PowerShell or CMD.
You’ll also need the VS Code Remote – WSL extension, which allows you to use a container, remote machine, or the Windows Subsystem for Linux (WSL) as a full-featured development environment. To learn more and get started please visit the VS Code Remote documentation page.
Ready, set, Linux!
Instead of writing a long section about how you get started with VS Code Remote in WSL, we have put together this quick video showcasing how to do python development in WSL using VS Code Remote.
This isn’t just isolated to python, you can use VSCode Remote and WSL on any Linux project
When using VS Code Remote in WSL, commands and extensions are run directly in the Linux distro, so you don’t have to worry about pathing issues, binary compatibility, or other cross-OS challenges. You’re able to use VS Code in WSL just as you would from Windows.
VS Code Remote and WSL are game changers when it comes to developing with Linux on Windows. These tools let you develop, run, and debug tons of Linux applications directly on your Windows machine, giving you the best of both a Windows and Linux environment.
If you want to learn more about the Windows Subsystem for Linux and everything command line in Windows, stay tuned to this blog! And if you are curious to learn more about VS Code Remote, you can read the announcement blog post here, and the extensive documentation covering the architecture here.
We are excited to bring you powerful combination of VS Code Remote and WSL!