sodcalculator

10 Tech How-To

Windows 11 Dev Environment Setup Guide

Guide 10-59338 · Updated · Step by step

Setting up a Windows development environment in Windows 11 means installing the tools you need to write, build, and debug code—typically a code editor, a package manager, Git, and a language runtime. This guide walks you through the essential steps, from enabling the Windows Subsystem for Linux to configuring Docker and choosing a terminal, so you can start coding productively.

Why Windows 11 Is a Good Dev Platform

Windows 11 has become a genuinely strong platform for developers. The biggest change is the Windows Subsystem for Linux (WSL), which lets you run a full Linux distribution—like Ubuntu—directly on Windows without a virtual machine. That means you can use Linux command-line tools, install packages with apt, and run scripts that expect a Unix environment, all while staying in Windows. Combined with the new Windows Terminal, which supports multiple tabs and panes, you get a flexible, modern workflow.

Another advantage is hardware support. Most laptops and desktops sold today run Windows 11, and drivers are usually available first for Windows. If you work with GPUs for machine learning or game development, Windows 11 has solid support for NVIDIA and AMD hardware, and WSL now supports GPU acceleration for CUDA and OpenGL.

Prerequisites and Initial Setup

Before installing anything, make sure your system is up to date. Go to Settings > Windows Update and click Check for updates. Install all pending updates, including optional ones, because they often include driver and security fixes that affect development tools.

You also need to enable virtualization in your BIOS/UEFI if it isn’t already. This is required for WSL and Docker Desktop. To check, open Task Manager (Ctrl+Shift+Esc), go to the Performance tab, and look at the CPU section—it should say “Virtualization: Enabled.” If it says disabled, reboot, enter your BIOS (usually by pressing F2, Del, or Esc during startup), find the virtualization setting (often called Intel VT-x or AMD-V), enable it, and save.

Once your system is ready, install the following core tools:

  • Git – version control. Download from git-scm.com and use the default options.
  • Windows Terminal – from the Microsoft Store. It’s the best terminal for Windows.
  • Visual Studio Code – a free, extensible code editor. Download from code.visualstudio.com.
  • A language runtime – depending on what you code in (e.g., Python, Node.js, .NET).

Enabling Windows Subsystem for Linux (WSL)

WSL is the single most important tool for a Windows developer. It lets you run Linux natively, which is essential if you work with open-source tools that assume a Unix environment.

To install WSL, open PowerShell or Windows Terminal as Administrator and run:

wsl --install

This command installs WSL 2, the virtual machine platform, and the default Ubuntu distribution. After it finishes, reboot your PC. Then, when you open the Ubuntu app, it will ask you to create a username and password—these are for Linux, not Windows, and can be different from your Windows credentials.

You can install other distributions later with wsl --install -d Debian or wsl --install -d kali-linux. To check what you have, run wsl --list --verbose. The default version should be 2; if it’s 1, run wsl --set-version <distro> 2.

One common misconception is that WSL is a virtual machine that slows you down. In reality, WSL 2 uses a lightweight utility VM that boots in seconds and has near-native performance for file I/O. It shares your network and can access Windows files via /mnt/c/.

Installing Package Managers and Runtimes

Package managers save you from manually downloading and updating software. On Windows, you have two main options:

  • winget – the built-in Windows Package Manager. Install software with winget install <name>. For example, winget install Python.Python.3.12 or winget install OpenJS.NodeJS.LTS.
  • Chocolatey – a community-driven manager. Install it from chocolatey.org, then use choco install git.

For Python, download the installer from python.org and make sure to check Add Python to PATH during installation. For Node.js, go to nodejs.org and grab the LTS version. For .NET, use the official installer from dotnet.microsoft.com.

If you’re using WSL, you can also install these inside Linux using apt or other Linux package managers. That’s often the better choice for server-side development because the environment matches production.

Setting Up Docker Desktop

Docker is essential for containerized development. Docker Desktop for Windows integrates with WSL 2, so you can run Linux containers natively.

Download Docker Desktop from docker.com and install it. During installation, it will ask if you want to use WSL 2 instead of Hyper-V—choose WSL 2. After installation, open Docker Desktop and go to Settings > Resources > WSL Integration to enable it for your Ubuntu distribution.

Now you can run docker ps in your WSL terminal and it will work. You can also use Docker in PowerShell, but the WSL integration is smoother because file paths and permissions behave like Linux.

A frequent issue is that Docker Desktop fails to start after a Windows update. The fix is usually to update WSL with wsl --update from an elevated terminal, or to restart the LxssManager service. If that doesn’t work, reinstall Docker Desktop.

Configuring Visual Studio Code and Git

Visual Studio Code (VS Code) is the most popular editor for Windows development. After installing it, open the Extensions view (Ctrl+Shift+X) and install these essential extensions:

  • Remote – WSL – lets you open folders inside WSL and use the Linux terminal directly in VS Code.
  • Remote – Containers – for developing inside Docker containers.
  • Python – if you use Python, includes linting and debugging.
  • ESLint and Prettier – for JavaScript/TypeScript formatting.
  • GitLens – enhances Git integration.

For Git, after installing, open a terminal and set your identity:

git config --global user.name "Your Name"
git config --global user.email "you@example.com"

You may also want to configure Git to use SSH keys for GitHub. Generate a key with ssh-keygen -t ed25519 -C "you@example.com" and add the public key to your GitHub account under Settings > SSH and GPG keys.

Common Problems and How to Fix Them

Even with a smooth setup, you’ll hit issues. Here are common ones and their fixes:

  • WSL not installing – Make sure virtualization is enabled in BIOS and that you’re running the command as Administrator. Also check that Windows is fully updated.
  • Command not found after installing – This usually means the PATH isn’t set. Reinstall the tool and ensure the installer adds it to PATH. For Python, you may need to add it manually via System Properties > Environment Variables.
  • Docker Desktop not starting – Run wsl --update and restart. If that fails, go to Docker Desktop settings and switch to “Windows containers” and back to “Linux containers”.
  • File permission errors in WSL – Don’t edit files in /mnt/c/ with Linux tools that expect Unix permissions. Instead, keep your projects in the Linux file system (e.g., ~/projects) and access them from Windows via \wsl$\Ubuntu\home\username\projects.
  • VS Code not recognizing WSL – Install the Remote – WSL extension and open a folder with code . from inside the WSL terminal.

Frequently Asked Questions

Do I need WSL if I only code in C# or .NET?

No, you can develop .NET apps entirely on Windows using Visual Studio or VS Code with the .NET SDK. WSL is more useful for web development, Python, Ruby, or any stack that relies on Linux-specific tools like nginx or Redis. That said, WSL is still handy for running Linux scripts or testing cross-platform behavior.

Should I use Windows Terminal or PowerShell?

Use Windows Terminal as your interface—it can host PowerShell, CMD, and WSL all in one app. Inside it, you’ll typically use PowerShell for Windows tasks and bash (from WSL) for Linux tasks. You can set your default profile to Ubuntu if you prefer.

How do I keep my development tools updated?

For winget, run winget upgrade --all to update everything installed via winget. For WSL, run wsl --update to get the latest kernel. For VS Code, it auto-updates by default. For Python packages, use pip list --outdated and then pip install --upgrade <package>.

Is it better to install Python on Windows or in WSL?

If you’re doing data science or web development, install it in WSL because most tutorials assume a Linux environment and you’ll avoid path issues. If you’re using Windows-only tools like PyInstaller or certain GUI libraries, install on Windows. You can also have both—just be aware that they are separate environments.

Can I use Windows 11 for mobile development?

Yes. For Android, you can use Android Studio, which works well on Windows. For iOS, you can’t build without a Mac, but you can use .NET MAUI or Flutter to write cross-platform code that runs on iOS when built on a Mac later. WSL won’t help with iOS builds.

What is the best way to manage multiple versions of Node.js?

Use NVM for Windows (nvm-windows) if you’re on Windows, or nvm inside WSL. It lets you install and switch between Node versions easily. For Python, use pyenv-win or the built-in py launcher to manage versions.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →