I have recently installed PowerShell Core v6. I wanted to check it out and see what it is like and it is easy to switch to in Windows Terminal if I want to play with it. After installing Version 6 though, Visual Studio Code keeps using core for my integrated console, despite my settings.json file pointing to the powershell.exe file in System32. How can I fix this?
Our environment is all on version 5.1 and core is missing many features and cmdlets that are in 5.1. I need these when testing scripts I will deploy. I can add another terminal and it will use PowerShell 5.1, but since it is not integrated, running script blocks fails sometimes. Here is my settings.json file:
{
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"window.zoomLevel": 0,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"explorer.confirmDragAndDrop": false,
"files.autoSave": "afterDelay",
"powershell.powerShellDefaultVersion": "Windows Powershell (x64)",
"editor.accessibilitySupport": "off"
}