12/13/2023 0 Comments Visual studio code copilot![]() ![]() It’s always essential to review and test the code generated by the tool thoroughly to ensure that it meets the project’s requirements and standards.Īs you can see with the above examples, it’s not perfect, but it gets you 80-90% of the way there and then you use your expertise to finish it off, saving a lot of time in the process and making you more productive. It’s important to note that while GitHub Copilot can be a helpful tool, it’s not a replacement for a developer’s expertise and judgment. In the below example, because my Bicep template also includes an Azure Key Vault, the autocomplete has suggested an NSG with a name of ‘nsg-keyvault’ and includes a rule for accessing the Key Vault over port 443. GitHub Copilot autocomplete from resource name, type, and API GitHub Copilot autocomplete from resource nameĪutocomplete can make suggestions at various points, including once you’ve entered the resource type and API version. I’ve been using GitHub Copilot autocomplete for various scenarios.įor example, if you give your resource a name of storageAccount, Copilot will provide an autocomplete for a storage account. The first suggestion for the vNet parameter was incorrect but the second suggestion was correct. As you can also see, it doesn’t always get it right. Adding Bicep description decorator with GitHub CopilotĪs you can see from the video it’s really easy to add descriptions. Specifically, I have a bicep file for an Azure Key Vault that contains parameters, which I want to enhance with the decorator. This helps you stay focused on your technical work without worrying about documentation. You can use GitHub Copilot to do the important but maybe not so interesting jobs that you usually leave to the end like generating inline documentation for parameters, variables, and metadata. I haven’t been using GitHub Copilot for long but the following are my initial thoughts on its use cases. GitHub Copilot with BicepĪs I mentioned earlier I’m not a developer so the reason I got excited about using GitHub Copilot was for use with Infrastructure as Code and in particular, Bicep. Once authorized, you can use GitHub Copilot in Visual Studio Code. ![]() You can install the Visual Studio Code extension by going to the GitHub Copilot extension page in the Visual Studio Code Marketplace, clicking Install, and then following the prompts to sign in to your GitHub account and authorize the extension. They can then use it to assist with coding in a variety of programming languages, including Python, JavaScript, TypeScript, Ruby, and Go, among others. To use GitHub Copilot, developers can install it as a Visual Studio Code extension. For more information, see the Visual Studio Code download page. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |