I'm still trying to figure out how to do this. Copilot is extremely helpful. But more often than not, it suggests completions which would steer the project in another direction.
It is extremely good once the code has been organised and an overall structure exists. But until then it can be a distraction.