The new beta for GitHub's Copilot program is now available and it looks quite interesting. After training OpenAI models on billions of lines of code it is now available as an IDE extension. The basic premise is that based off comments, method signatures, or other common code lines, the AI model will attempt to guess what code you are going to write next and auto-complete it. The big difference between Copilot and other autocomplete systems is that it scans for context from the entire file instead of just the current line.
From this screenshot I simply wrote out the function definition
function calculateDaysBewteenDates and then Copilot figured out the rest so I could just hit tab to autocomplete the method. It takes a bit to get used to how Copilot works and what is required to get the correct results but it could be very useful. This project is just getting started but I would definitely recommend checking it out!