Use a comment to drive the autocomplete on the next line, like:
”// a function takes an array of numbers and returns the array with negative numbers removed ”
In my experience this can match GPT-4 in many cases while saving the roundtrip.
”// a function takes an array of numbers and returns the array with negative numbers removed ”
In my experience this can match GPT-4 in many cases while saving the roundtrip.
One thing I have done is to start more manually to establish the patterns I want to use for things like parameter validation, log lines, etc and Copilot seems to do a very good job mimicking those.