3 ms·
You can open a vscode tab with copilot and have it synthesize many autocompletions. If I add your comment, a newline and the "func" keyword it does this https
by CapsAdmin 5y ago
You can open a vscode tab with copilot and have it synthesize many autocompletions.
If I add your comment, a newline and the "func" keyword it does this
https://gist.github.com/CapsAdmin/9fe57314ab9f77bec0445eb042ac56a5 https://gist.github.com/CapsAdmin/9fe57314ab9f77bec0445eb042...
If I add some more context, ie "func swap(" you get
https://gist.github.com/CapsAdmin/2c8757887c27f980d1a4c2edfdafab2d https://gist.github.com/CapsAdmin/2c8757887c27f980d1a4c2edfd...
more context, "func swap(x int32) int32"
https://gist.github.com/CapsAdmin/64e0392fe6f3d406a607884583fafc49 https://gist.github.com/CapsAdmin/64e0392fe6f3d406a607884583...
I use and like copilot, but when it comes to things like this I generally don't trust it.
I'm not very fluent with bit swapping either, so I would probably resort to google on this one.
- 37ef_ced3 5y agoAll wrong. Every solution is garbage.