I am using Visual Studio Code and the terminal extension keeps trying to start using an invalid folder. I have tried setting "terminal.integrated.cwd" for both User and workspace but the problem still exists. Where can I find this setting to change it?
Note: I am editing powershell in Visual Studio.
Visual Studio Code's PowerShell extension provides a custom shell that runs in the integrated terminal, the so-called PowerShell Integrated Console (PIC), which has separate settings.
To control the startup working directory of the PIC, use the powershell.cwd
setting.
Interactively, via the Settings dialog (Ctrl+,), you can locate it quickly by searching for powershell cwd
:
Note the important constraint: only a full, literal path may be specified.
To see all settings relevant to the PowerShell extension, either search for powershell
only, or - without searching - navigate to Extensions > PowerShell
in the tree view on the left.