I like sshfs for that. It preserves the “do one thing, do it well” idea that so many IDEs seem to have forgotten.
I don't use IDEs at all and work on sshfs almost exclusively, but I totally understand where people are coming from and the difference between editing files and running code.
VScode sees file changes immediately.
(it also has, for most of my use cases, better performance that sshfs).