You are not supposed to ask it things using comments, like "create x", you should just describe what the following code is going to do, like some people do in codebases. GitHub Copilot is not only based on the thousands of GitHub open source projects, but also the workspace you are currently in. Therefore it kind of picked up your comment style of "create xyz" and suggested it in the binary tree example 😁 Like you pointed out, I like to use it at getting started with frameworks and plugins by pulling in boilerplate code with a single tab instead of opening the frameworks' and plugins' documentations in the browser and copy & pasting. What I also like is if stupid repetitive work has to be repeated a few times, but not often enough to write your own tool to generate the code. GC just picks up the patterns and helps you generate code and comments - awesome!
Copilot for Rust has worked OK for me- it obviously doesn't have intellisense and often makes up functions, but it does help decrease the amount of time I spend reading docs 😁
Nice, yeah after watching other videos I had the impression that it was more of a pilot than a copilot (at least for its more supported languages). After this test I feel it is very useful but definitely more of a copilot than a pilot :)
@@codetothemoon Most of my copilot autocompletions are for finishing code lines I would've written similarly anyway, I don't love letting copilot write full functions out as I have to thoroughly check it😂 It also comes with the question of who holds the copyright for any functions copilot writes, and if copilot just copy + pasted them from some other project
Earned my upvote right from the first point in this video. I thought I had everything installed, but Copilot wouldn't suggest any code even though I gave it an obvious simple function to write. I too needed to start writing. Just 'fn' was enough to get things kicked off. OH! Just saw that it also suggests if you hit return after typing the comment. So even easier.
Not that I’ve found. And I don’t think it can add dependencies as you use them, as its suggestions are scoped to the current file you’re working on. Could be wrong though!
You are not supposed to ask it things using comments, like "create x", you should just describe what the following code is going to do, like some people do in codebases.
GitHub Copilot is not only based on the thousands of GitHub open source projects, but also the workspace you are currently in. Therefore it kind of picked up your comment style of "create xyz" and suggested it in the binary tree example 😁
Like you pointed out, I like to use it at getting started with frameworks and plugins by pulling in boilerplate code with a single tab instead of opening the frameworks' and plugins' documentations in the browser and copy & pasting.
What I also like is if stupid repetitive work has to be repeated a few times, but not often enough to write your own tool to generate the code. GC just picks up the patterns and helps you generate code and comments - awesome!
Thanks for the tip! Will try this and see if I get better results.
Copilot for Rust has worked OK for me- it obviously doesn't have intellisense and often makes up functions, but it does help decrease the amount of time I spend reading docs 😁
Nice, yeah after watching other videos I had the impression that it was more of a pilot than a copilot (at least for its more supported languages). After this test I feel it is very useful but definitely more of a copilot than a pilot :)
@@codetothemoon Most of my copilot autocompletions are for finishing code lines I would've written similarly anyway, I don't love letting copilot write full functions out as I have to thoroughly check it😂 It also comes with the question of who holds the copyright for any functions copilot writes, and if copilot just copy + pasted them from some other project
Earned my upvote right from the first point in this video. I thought I had everything installed, but Copilot wouldn't suggest any code even though I gave it an obvious simple function to write. I too needed to start writing. Just 'fn' was enough to get things kicked off. OH! Just saw that it also suggests if you hit return after typing the comment. So even easier.
Great video! Keep with the great work!
Thanks Carlos!
i didnt understood the binary tree homebrew reference, can someone link me up?
it was a reference to this famous tweet 😎 twitter.com/mxcl/status/608682016205344768?lang=en
Is there a way to force CoPilot to use the latest API from the cargo.toml dependencies? Does it add the dependences for you?
Not that I’ve found. And I don’t think it can add dependencies as you use them, as its suggestions are scoped to the current file you’re working on. Could be wrong though!