[Window] About using WSL2 on window10, Vscode implements some records of running ubuntu

How to install WSL 2 on Windows 10

PowerShell allows the system to execute .ps1 files 

http://t.csdn.cn/Bsg0O

1. Enable WSL, open the PowerShell tool as an administrator and run the following command

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

2. Enable "Virtual Machine Platform" 

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

3. run ubuntu

4. To open a project from a WSL distribution, open the distribution's command line and enter:code .

Guess you like

Origin blog.csdn.net/MengYa_Dream/article/details/128337574