GitHub Copilot | Your AI pair programmer | Revolutionizing programming using copilot
Getting access and testing the AI-powered coding giant — The GitHub Copilot | Coding mate — Copilot | More than auto-complete | powered by OpenAI | Technical preview by Rohinth.S
NOTE :- This blog is made in July, 2021 ( At present, GitHub Copilot is not open sourced and Copilot’s technical preview restricted to limited people for testing purpose )
In future, A new blog will be made if the all new ‘Copilot’ is open sourced and made public
At present, Copilot is restricted to testers, Join the waiting list to get access for Copilot. Steps to join the waiting list is
- Click here — Join Copilot Waiting List 😎
- Sign-in/Sign-up to your GitHub account and Join the waiting list. ⏰
- It will take a time period of around 1–2 weeks to get you accepted. 📆
- You will be notified with mail once you are accepted. 📭
- Once you are accepted for the technical preview of Copilot, you will receive a mail of invitation to the private repository ‘copilot-preview’. 📬
- Accept the invite by signing in with your GitHub ACCOUNT WHICH WAS USED TO JOIN THE WAITING LIST. ✔️
- Signing-in with any-other account will result in error-404. ❎
You will also receive a mail with link to download/install GitHub’s copilot. 📬
- Click on ‘install GitHub Copilot’. You will be taken to ‘marketplace’ in your browser.
- Click install and choose ‘Visual Studio code’ and click on open link.
Visual Studio code opens and displays the Copilot’s details, feature contributions, change log, etc.
- Click ‘install’ near Copilot’s logo.
- You will be prompted to sign-in to your GitHub to authenticate the extension.
- If your signed-in account matches the authorized GitHub profile list to access Copilot technical preview, the extension will be successfully authenticated. ✔️
- Else the authentication of the extension will fail, and you will be prompted to join the wait list with your GitHub account. ❎
Copilot is all set to be tested !
(Note :- Check to the bottom right and confirm that your copilot is enabled)
Copilot offers 4 handy options namely:-
- In windows, you can click to select options or use short-cuts. Use ‘Alt+]’ to go to next suggestion, ‘Alt+[‘ to go to previous suggestion, use ‘Tab’ to accept the current suggestion and ‘Ctrl+Enter’ to open copilot and synthesize more code suggestions.
- Name your ‘function’ in an appropriate way so the copilot can identify your function’s cause and can suggest code snippets accurately.
If you are not satisfied with the suggested code snippet, you can open copilot to synthesize more code snippets to select from.
Here is the Comment section suggestion by copilot.
- Finally, Last but not least, The feature I love the most. 😌
- This is the feature which takes common English language, understands the purpose of the code and generates the appropriate code. 😍
- Just comment out the so called ‘To-do’ in your desired programming language. 📑
- Sit back and get ready to just review the suggestion snippets and press ‘Tab’ to accept the suggestions. 🆒
Sum of a list ( Using Copilot )
- Comment the To-do of function and start the function definition part.
- Press ‘Tab’ to accept the suggestion.
- Complete the program and execute it to get the output.
Advantages & Disadvantages of Copilot is beyond the scope of this blog (and seriously, ‘Copilot’ is just a budding newbie with a lot more cool capabilities of revolutionizing the programming world).
There will be much enhancements, code fixes/ bug fixes, corrections, and a lot-lot more releases of Copilot. Wish this Copilot will be open-sourced. 😍
Stay-Tuned for a lot more stuffs from me 😎
Until then,
Rohinth Signing off , See Ya ! ❤️
Do connect with me in — Twitter_Handle | GitHub_Handle