Hey, try the following steps to solve the problem:
Check PowerShell settings: Go to File > Preferences > Settings, find terminal.integrated.shell.windows, and make sure the path to PowerShell is correct.
2. Update PowerShell: Ensure you have the latest version of PowerShell installed. You can download updates from the official Microsoft website.
3. Check environment variables: Make sure the PATH environment variable contains the correct path to PowerShell.
I simply went into settings, used the following search query to see all modified terminal settings:
@feature:terminal @modified
To reset everything back to default, I hovered over each of them and press the → Reset Setting
No more issues since. Perhaps these modified settings came from when I imported my settings over from VS Code, not sure.
I didn’t upgrade Powershell, so that’s not needed unless you want to. However, I actually ended up upgrading at a later date as the AI likes to use && for multiple commands and this requires Powershell 7.