Does anyone use co-pilot in vscode? I have just st...
# water-cooler
g
Does anyone use co-pilot in vscode? I have just started - and it is REALLY amazing.
j
I haven't tried it yet. I'm curious - what are you using it for?
m
I played when it was free. Not worth it to me to pay considering my role, but if I was still slinging code for cash I'd probably use it.
g
@Jim Priest It uses AI, and auto-suggests, practically everything for you. Comments AND code... Type in <cfloop and it will auto add in the item / index AND the correct syntax for emitting what you're looping over. E.g. Looping over an array... Looping through the structs, in that array <as I sit at the start of this line - without typing anything> It will auto-suggest the code for you to successfully get to the index / items of the structs, within the array... I haven't found that it changes what / how I write... But - it will auto-suggest the correct syntax for my embedded data - correctly, so I can just press "tab" and have multiple "correct" lines appear.
I am not saying it always gets it right - but from the perspective of "Is my syntax right"? I find it awesomely helpful. Recently I spent literal hours trying to update a struct of structs I just couldn't get the syntax right.... I tried dot notation I tried using square braces with quotes / without quotes. Some with - some without - in the same line... In the end I got some help from the fine people here... but it was genuinely something like 4 hours of my time to get the point of asking for help - then waiting for a response (while still trying) - and then getting a reply that I could understand / see how it would suit my code and style.... After a while it learns YOUR style, too. I started putting in a comment with every loop... and the AI started auto-suggesting not only my code syntax - but also the "correct" comment to use for the paragraph of code, too. I am just doing the free trial and I am spectacularly impressed.
👍 1