And for making changes to existing code, you might need to check with your company's policies on this, but if you're ok to paste code into ChatGPT you can also just ask how to change it to do Y instead of X.
Copilot is.... ok? StarCoder is pretty bad IMHO. ChatGPT4 is really empowering.