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.
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
I believe this is related? https://github.com/microsoft/vscode-remote-release/issues/3738
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding and happy coding!