4 ms·
No, Copilot is just dumb, for example, I have the following code: func(a, b, 1) func(b, c, 1) and, say, for some reason I need to swap the order so th
by rfoo 2y ago
No, Copilot is just dumb, for example, I have the following code:
func(a, b, 1)
func(b, c, 1)
and, say, for some reason I need to swap the order so the first line looks like func(1, a, b). After doing that, without even moving to the second line, Cursor just suggests changing the second line to func(1, b, c).
You just can't make Copilot do this. Even after you move to the second line, it won't suggest anything. It just suggests a completion starting from where your cursor is, instead of an inline edit around where you are at.
Sometimes you can delete everything after func( on the second line and Copilot will finish it, but sometimes it just can't and decided to autocomplete irrelevant (e.g. func(1, e, f).
In this case there's not much intelligence needed, but for more complicated changes Cursor does just as well.
- vbezhenar 2y agoSo you're talking about Copilot suggesting edits rather than inserts. Yes, I agree, that's a major deficiency of Copilot. Thanks.