lordhog
lordhog

Reputation: 3707

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

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

Upvotes: 23

Views: 7791

Answers (2)

davetapley
davetapley

Reputation: 17918

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

Upvotes: 28

DQ WEI
DQ WEI

Reputation: 35

vscode open terminal / PowerShell

input:ssh user@hostname and Enter password

Upvotes: -2

Related Questions