How to use GitHub Copilot in an AL project for Microsoft Dynamics Business Central

In this post, I'm going to talk about GitHub Copilot: key benefits, an artificial intelligence tool based in the cloud developed by GitHub and OpenAI, the creators of ChatGPT-3. 

Introduction 

GitHub Copilot is a programming tool that uses artificial intelligence language models to help developers write code. It suggests lines of code in real time based on the context and is available as an extension for Visual Studio Code. It is based on artificial intelligence language models trained on large amounts of source code. The tool learns from your behavior and improves its suggestions over time.  

Currently, GitHub Copilot is in a limited beta version, with a free 30-day trial plan. 

You can start the free trial from here: https://github.com/features/copilot

First of all, you must have a GitHub account and access your preferences to complete the GitHub Copilot setup. If you don't have one, you'll need to create it.

Once GitHub setup is complete, we go to Visual Studio Code and install the "GitHub Copilot" extension.

After installation we restart VS Code and follow the steps:

 

Next, let's see how to use it: 

How to use GitHub Copilot in an AL project for Microsoft Dynamics Business Central

We start with an example in a Page Extension of Item List. Observe that the code appearing in gray italic font is the GitHub Copilot suggestion. To accept it, we just have to press the Tab key (↹) 

To conclude, the benefits that GitHub Copilot has for a developer could be summarized as follows: 

1) Time savings: GitHub Copilot can suggest lines of code in real time, which can save developers a lot of time. 

2) Code quality improvement: GitHub Copilot suggestions are based on artificial intelligence language models that have been trained on large amounts of source code, meaning they can help developers write high-quality code and avoid common errors. 

3) Productivity increase: by saving time and improving code quality, GitHub Copilot can increase developer productivity. 

4) Facilitates writing complex code: with GitHub Copilot's help, developers can write complex code more easily and quickly. 

5) Improves collaboration: GitHub Copilot can be used by multiple developers on a project, which can improve team collaboration and efficiency. 

I hope it helps you. 

Adelaida García Toscano 

Dynamics 365 Development  
ABD Consulting and IT Solutions 

Table of Contents

Follow us on LinkedIn
Subscribe to the Newsletter




    Labels