Add command to open terminal in new window#258896
Merged
Conversation
Co-authored-by: Tyriar <2193314+Tyriar@users.noreply.github.com>
…tions Co-authored-by: Tyriar <2193314+Tyriar@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add command to open terminal in new window
Add command to open terminal in new window
Jul 30, 2025
Tyriar
approved these changes
Aug 3, 2025
DonJayamanne
approved these changes
Aug 4, 2025
bpasero
reviewed
Aug 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new VS Code command
workbench.action.terminal.newInNewWindowthat creates a new terminal directly in a new window, complementing the existing "Move Terminal into New Window" command that moves existing terminals.What's new
Command: "New Terminal in New Window"
workbench.action.terminal.newInNewWindowCtrl+Shift+Alt+`` (Windows/Linux),Cmd+Ctrl+Shift+Alt+`` (macOS)Behavior
When executed, the command:
Implementation details
The implementation follows established VS Code patterns:
AUX_WINDOW_GROUPconstant to open the terminal in a new windowTerminalContextKeys.processSupportedorwebExtensionContributedProfile)DEFAULT_COMMANDS_TO_SKIP_SHELLlist for proper shell integrationFiles changed
src/vs/workbench/contrib/terminal/common/terminal.ts- Added command ID enum and skip shell entrysrc/vs/workbench/contrib/terminal/common/terminalStrings.ts- Added localized stringsrc/vs/workbench/contrib/terminal/browser/terminalActions.ts- Implemented action with keybindingCommand comparison
This provides users with a more direct workflow for creating terminals in separate windows without having to first create a terminal and then move it.
Fixes #258895.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.