How to prevent new VS Code window from launching for remote ssh connections

Viewed 1854

When connecting to a remote machine using VS Code Remote SSH this act always opens a new VS Code Window. Is there a way to change this behavior to use the existing open window? Thanks

2 Answers

There is a separate command for this.

You need to do Remote-SSH: Connect Current Window to Host...

instead of Remote-SSH: Connect to Host...


VSCode screenshot

vscode open terminal / PowerShell

input:ssh user@hostname and Enter password

Related