


Make sure to press CTRL+ENTER at the end of your comment. Yes, it's that easy.įor example, try the following example in your VS Code editor: # Create Active Directory users from a CSV file ps1, and VS Code recognizes that I'm writing PowerShell via the Language Mode button.Ĭomment-based suggestions are generated by GitHub Copilot when you use that language's line comment symbol (# in PowerShell) and type what you want to do. In this tutorial, I'm using PowerShell, so I installed the PowerShell VS Code extension to give me native language support. GitHub Copilot in Visual Studio Code Comment-based suggestionsĪs long as VS Code recognizes your file type, that's all you need to begin. Because I host several open-source repositories at GitHub, I use Copilot with no charge myself. However, you should read the GitHub Copilot billing page I linked to in the previous paragraph because you very well may qualify for free usage. As of late December 2022, GitHub Copilot costs $10 USD per month or $100 USD per year. With regard to billing, you should start with the 60-day free trial and then consider boosting your trial to a paid tier.

GitHub and OpenAI continually train the model to refine the suggestions it can generate from conversational user input.īy the way, this is the same OpenAI that developed the ChatGPT chatbot that's created such a news buzz over the past weeks and months. In case you don't know, GitHub Copilot is a paid cloud service that uses the OpenAI Codex, a powerful machine learning (ML) model. I think you'll be impressed with how dramatically GitHub Copilot can accelerate your administrative automation coding.
