A few days ago I discovered that VSCode provides a remote ssh feature. You can use a remote server to compile, build and run your code but with a very reponsive (local) text editor.
So I just set up a Digital Ocean VPS to remotely code my Elixir / Phoenix project (which allows me to seamlessly switch between my two computers). I can even code from my browser thanks to code-server
Here is a ansible playbook to quickly setup your VSCode server
Comments are very welcome!