4 ms·
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 ”
by Our_Benefactors 3y ago
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.
- fatnoah 3y agoGood advice, I've been doing a similar thing with good results. 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.
- cwkoss 3y agoYeah, I've used that to good effect. My main quibble with copilot vs chatGPT is that chatgpt will remind me of side effect changes I need to make elsewhere in the file, which I haven't figured out how to make copilot do.