Remotely edit a node.js project via WebStorm or VSCode that is hosted on WSL on Win 11 on a local network

39 Views Asked by At

I'm developing a Node/Express project running on Ubuntu (WSL on Windows 11). I'd like to develop code on my laptop by remotely connecting to the Node project files using either WebStorm or VSCode.

I can ssh to the project by running:

ssh -t [email protected] "wsl ~"

The wsl command nicely takes me to the root of my WSL installation but whenever I try to open a remote a location in VSCode, it displays the Windows (host) files (not the Ubuntu WSL filesystem).

I don't really want to go the vim route. Alternatively I'd use git to develop on my laptop and keep pushing the changes and pulling them from Ubuntu WSL but I don't believe that would be the most optimised flow.

Any idea of how I could do that?

0

There are 0 best solutions below