Developing in the Windows Subsystem for Linux with Visual Studio Code

Beginner
Developer
Visual Studio Code

In this module, you learn how to use the Windows Subsystem for Linux (WSL) with Visual Studio Code (VS Code). We explore the installation process and the basics of using WSL. Additionally, we install and utilize the Visual Studio Code WSL extension. Finally, we demonstrate how to debug and run Python code in VS Code within our WSL environment.

Note

This module contains a primer on the Windows Subsystem for Linux (WSL). For a more in depth module on WSL check out Introduction to Windows Subsystem for Linux (WSL).

Learning objectives

By the end of this module, you're able to:

  • Install and use the Windows Subsystem for Linux on your Windows machine.
  • Install and use the Visual Studio Code WSL Extension.
  • Debug Python code in WSL with Visual Studio Code.

Prerequisites

  • A computer running Windows 11 or Windows 10.
  • Ability to run PowerShell or Windows Command Prompt as an Administrator.
  • Visual Studio Code installed on computer.
  • Basic understanding of the concept of using software plugins or extensions to customize applications.