Using copilot to refactor entire files?
Say you have a function called findBoobies()
beneath it I can for example write:
// rewrite findBoobies to use .filter()
function findBoobies2 ...
and it will do just that.
But lets say I want to change something fundamental about a file
For example during this days advent of code challenge I wanted Items to be represented as objects.
Say I want copilot to rewrite the entire flie to use an Array for each item instead of my current Interface.
In principle that should be possible with GPT3 - How would you approach that?
0 Replies