Aka VSCode DevContainer?
Could work I think (be wary of sending .env to the web though)
One way of doing it, yes. Why would your dev repo have any credentials in .env?