通过这篇文章将wsl设置为默认的终端:Windows Subsystem for Linux Installation Guide for Windows 10

1、查看wsl子系统:

PS C:\WINDOWS\system32> .\wslconfig.exe /list
适用于 Linux 的 Windows 子系统分发版:
Ubuntu (默认)
docker-desktop-data
docker-desktop

这里我之前操作过,所以已经是Ubuntu (默认), 如果之前默认的不是ubuntu(或其他自己手动安装的子系统,则操作.\wslconfig.exe /setdefault Ubuntu)

2、设置ide的终端路径: settings>tools>terminal => path
WSL2作为phpstorm/ide 的默认终端

设置完成之后,重新打开Terminal, 显示的即是wsl

WSL2作为phpstorm/ide 的默认终端

相关阅读:

相关文章:

  • 2021-12-29
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2021-10-10
相关资源
相似解决方案