Home Explore Blog Models CI



docker

content/manuals/desktop/features/wsl/use-wsl.md
1e180362c20fbf88cc68832d5fe5269d983fdae09599cf0d000000030000059e
---
title: Use WSL
description: How to develop with Docker and WSL 2 and understand GPU support for WSL
keywords: wsl, wsl 2, develop, docker desktop, windows
aliases:
- /desktop/wsl/use-wsl/
---

The following section describes how to start developing your applications using Docker and WSL 2. We recommend that you have your code in your default Linux distribution for the best development experience using Docker and WSL 2. After you have turned on the WSL 2 feature on Docker Desktop, you can start working with your code inside the Linux distribution and ideally with your IDE still in Windows. This workflow is straightforward if you are using [VS Code](https://code.visualstudio.com/download).

## Develop with Docker and WSL 2

1. Open VS Code and install the [Remote - WSL](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl) extension. This extension lets you work with a remote server in the Linux distribution and your IDE client still on Windows.
2. Open your terminal and type:

    ```console
    $ wsl
    ```
3. Navigate to your project directory and then type:

    ```console
    $ code .
    ```

    This opens a new VS Code window connected remotely to your default Linux distribution which you can check in the bottom corner of the screen.


Alternatively, you can open your default Linux distribution from the **Start** menu, navigate to your project directory, and then run `code .`


Chunks
ba07a918 (1st chunk of `content/manuals/desktop/features/wsl/use-wsl.md`)
Title: Developing with Docker and WSL 2
Summary
This section explains how to develop applications using Docker and WSL 2, recommending that code be stored in the default Linux distribution. It outlines a process using VS Code and the Remote - WSL extension to work with code in the Linux distribution while keeping the IDE client on Windows. The steps include opening VS Code, installing the extension, accessing the Linux distribution via the terminal, navigating to the project directory, and opening VS Code remotely connected to the Linux distribution.