Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code 在Integrated Powershell窗口中使用默认Powershell_Visual Studio Code - Fatal编程技术网

Visual studio code 在Integrated Powershell窗口中使用默认Powershell

Visual studio code 在Integrated Powershell窗口中使用默认Powershell,visual-studio-code,Visual Studio Code,我一直在为我的所有Powershell窗口使用默认配置文件脚本,它让我登录到我需要的所有不同模块。(文档\WindowsPowerShell)。这在VSC和正常默认powershell窗口下仍能正常工作 当我加载Integrated PS窗口时,它不再利用默认的概要文件脚本。有没有办法让集成PS窗口使用我一直使用的相同配置文件脚本?集成终端使用单独的配置文件,但路径与PowerShell.exe配置文件相同:Microsoft.VSCode\u profile.ps1 您可以创建代码配置文件,只

我一直在为我的所有Powershell窗口使用默认配置文件脚本,它让我登录到我需要的所有不同模块。(文档\WindowsPowerShell)。这在VSC和正常默认powershell窗口下仍能正常工作


当我加载Integrated PS窗口时,它不再利用默认的概要文件脚本。有没有办法让集成PS窗口使用我一直使用的相同配置文件脚本?

集成终端使用单独的配置文件,但路径与PowerShell.exe配置文件相同:
Microsoft.VSCode\u profile.ps1

您可以创建代码配置文件,只需添加下面的行,它将在每次启动时加载您的主配置文件。(但请注意,在集成终端中并不是所有功能都很好,它是使用Powershell编辑器服务的自定义主机)

. ((Join-Path -Path (Split-Path $profile) -ChildPath Microsoft.PowerShell_profile.ps1))