如果你下载了Windows Terminal和最新版的PowerShell Core就会发现,
如果不特殊设置的话,即使我们使用的Windows Terminal拥有命令补全,Visual Studio的终端仍然没有任何补全。
这是因为Visual Studio的终端使用的是系统自带的Windows PowerShell的模块(Modules),而不是Windows Terminal的模块,
所以看起来会有不同。
而命令补全功能是由一个名为PSReadLine
的模块提供的,Windows PowerShell中只有老版本v2.0.0,而Windows Terminal中是最新的版本。
我们可以用Get-Module -ListAvailable
看到这种情况: