Search code examples
powershellvisual-studio-code

VS Code always maximizes terminal when opening PowerShell script


When opening a directory in VS Code and clicking on a PowerShell script, the terminal is maximized instead of splitting the screen between the Editor and Terminal tab.

Can I somehow control this setting so that I always see the Editor and Terminal tab?

Current behavior

enter image description here

Desired behavior

enter image description here

VS Code information

Version: 1.94.2 (system setup)
Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427
Date: 2024-10-09T16:08:44.566Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631

settings.json

{
    "github.copilot.advanced": {
    },
    "http.proxySupport": "on",
    "http.proxy": "http://my.company.com:1234",
    "workbench.panel.opensMaximized": "always",
    "window.restoreWindows": "none",
    "workbench.startupEditor": "none",
    "dotnetAcquisitionExtension.enableTelemetry": false,
    "telemetry.telemetryLevel": "off",
    "files.associations": {
        "*.json5": "jsonc"
    }
}

Update 16.12.2024

After doing a "VS Code extension bisect", I nailed it down to the ms-vscode.powershell extension:
enter image description here


Solution

  • It's probably because you have "workbench.panel.opensMaximized": "always", in your settings. Just delete that line.