dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartdism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestarthttps://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_arm64.msi
ou (si ARM64)
wsl --installwsl -l --onlinewsl --list --onlineou
wsl --install Ubuntuwsl --install Debianwsl --install <distribution>Exemples :
wsl -lwsl --listou
wsl --distribution <distribution>wslou
wsl -d <distribution>wsl -d Ubuntuexemple :
sudo apt install zsh gitsudo apt update
sudo apt upgrademettre à jour les paquets
(ici pour Debian-based : Debian, Ubuntu...)
installer zsh et git
curl https://get.volta.sh | bashsh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"L’interface de VSCode tournera dans Windows
Tout le reste sera exécuté sur Linux
(les commandes, les extensions et le terminal)
Lancer VSCode dans WSL
par le shell
par l’icône en bas à gauche de VSCode (avec les chevrons)
par la palette de commande
Maj Ctrl p