我习惯于在vscode中使用WSL来使用cpp进行编码。
今天,我在vscode中配置了Go,并在powershell cmd中成功运行。
然而,当我转到WSL时,它以";4294967295";。我搜索了很多资源,但不知道如何解决它。
这是我在vscode中的settings.json文件和快照。有人能帮我吗?谢谢
在此处输入图像描述在此处输入图像描述
而不是用于cmd.exe
(在我的情况下(的terminal.integrated.shell.windows
使用这样的设置:"terminal.external.windowsExec": "wsl.exe"
可能是因为您的计算机可以找到VM,请尝试以下操作:
DISM /online /disable-feature /featurename:VirtualMachinePlatform /norestart
DISM /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart
重新启动,然后:
DISM /online /enable-feature /featurename:VirtualMachinePlatform /norestart
DISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart