Prevent integrated terminal from opening automatically Prevent integrated terminal from opening automatically powershell powershell

Prevent integrated terminal from opening automatically


VSCode will remember your last session.

So, if you close the terminal and exit VSCode, the next time you open, the terminal will not be displayed.

You can set your VSCode profile to not display (close the terminal on load).

As for User Settings:

This is not the first time this has been asked for.

'github.com/PowerShell/vscode-powershell/issues/580' •

powershell.startAutomatically: When set to true (default), causes the language service to start automatically the first time a PowerShell file is opened. You could then use the "Restart PowerShell Session" command to kick off the language service on demand. •

powershell.showIntegratedConsoleOnStartup: When set to true (default), causes the integrated console window to be shown automatically when the language service starts. If false, the language service starts but the console window isn't shown until the user runs script code (or runs the Show Integrated Console command)

Update as per the OP side discussion with me

What I just tested.In your custom user settings, either set the:

"powershell.enableProfileLoading": false

or if you have that setting this way:

"powershell.enableProfileLoading": true

Add this setting:"powershell.integratedConsole.showOnStartup": false,


What worked:

"powershell.integratedConsole.showOnStartup": false,

What kind of worked:

"powershell.startAutomatically": false works but also kills the entire PowerShell extension.

VSCode remembering the last session's setup works inconsistently; it does not work when loading a file directly from the CLI via cmd> code someFile.psm1.

If the setting isn't there yet, then simply add it like this:

enter image description here