-
Notifications
You must be signed in to change notification settings - Fork 434
Provide a command to open a VSCode Remote SSH connection from the command line via an already open SSH connection #3324
Description
When using the VSCode Remote WSL features, I've come to appreciate and rely on the ability to open a folder or file in VSCode by using the code command in my WSL terminal and it starting up a VSCode on Windows -> VSCode Remote WSL window for the file or opening in a current window as if I had opened the file on my device directly.
With the move to work from home, I've recently moved to using the VSCode Remote SSH features extensively to remote into my box at work instead of using RDP. I've even set up the ability to SSH into my machine via custom terminal profiles. However, I've encountered one issue that regularly messes up my workflow. Whenever I run code . in an ssh shell, it pops open VSCode on the remote machine instead of opening on my local machine and connecting to my remote machine. I'd love if there was a way to open VSCode with a remote SSH connection from the command line, run either on the target machine or the host or within or outside of a VSCode integrated terminal.