WSL is a Windows feature. On macOS and Linux your terminal already works the way WSL gives Windows.
WSL is a Windows feature. On macOS and Linux your terminal already works the way WSL gives Windows.
- Install VS Code on Windows
winget install Microsoft.VisualStudioCode - Add the WSL extension
code --install-extension ms-vscode-remote.remote-wslOpen a new PowerShell window first if code isn't found.
- Open a project from inside Ubuntu
wsl cd ~/projects/my-app code .The first time, VS Code sets itself up inside Ubuntu, which takes a minute.
Check it worked
- Check the extension is installed
code --list-extensionsYou should see ms-vscode-remote.remote-wsl. In VS Code, the bottom-left corner says WSL: Ubuntu.