I'm fairly new to VS Code and I have been trying to setup the program/workspace (one and the same for me).
I've setup all the recommended settings for PowerShell, but I have been trying to change the integrated terminal to v7 - each time it loads is with V5.1.
Firstly, I know there are many answers out there - I have tried them all. The problem is that most of them are out of date now.
I ran into an answer by Ger83 in How to Change Visual Studio Code 'Powershell Integrated Console'?. There, he describes the deprecated features and issues with the PowerShell Extension. (Since Ger83 had the answers, I was going to leave comments - not enough reputation - or send a private message - does not exist - so I had to create a whole new question to get an answer.)
So, is there a way to change the PowerShell integrated console from v5.1 to v7 while also using the PowerShell Extension?
My settings.json, I believe, are setup correctly:
"terminal.integrated.defaultProfile.windows": "PowerShell",
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
I tried to turn off the PowerShell extension, but as a result, I lost the ability to run PowerShell scripts from the editor.
With the extension on, I noticed that the language in the bottom-right corner is shown as v5.1. I don't know if it is possible to change this. PowerShell Language screenshot showing v5.1
If there is no way to change the integrated console to v7, are there any workarounds to enable easy running of a script directly to the PowerShellv7 console? This may be a shortcut or setting.
Edit: Answer is provided by mklement0 in the comments.