Copilot is an AI service by GitHub.
I use it in my Dotfiles Neovim setup.
Tip
I don’t use AI to generate any logic, and in my honest opinion, neither should you. I decided on that, as soon as I fooled around with it, and it generated a “Quick Sort” algorithm, which allocated four times the memory of the input array. So for logic, I don’t touch it with a ten-foot pole.
I basically only use it as an advanced autocorrect and snippet tool. If a function definition is well known, and I have some variables in my local scope that match the function declaration pretty close, AI is pretty good at guessing. This means I don’t have to type out every single parameter name, brace, etc., unnecessarily.
Note, however, that I often times use statically typed languages and/or languages with a very strict compiler (like, e.g., Rust), which aids in not accidentally fumbling the parameters.