Greetings @vix,
I don’t believe there is a way to do what you’re asking here. Either you edit the compose file in your VSCode project and re-deploy to the device. Or as you said you ssh/terminal into the device and edit it that way.
Best Regards,
Jeremias