Skip to main content

AI-Part2: Setup-Vscode-al-copilot-business-central

HI,

This article is a complete, up-to-date walkthrough for setting up Visual Studio Code, the AL Language extension, and GitHub Copilot for Business Central AL development.


Setting Up VS Code, AL Language, and GitHub Copilot for Business Central Development

Before writing a single line of AL code with AI assistance, you need three things working together correctly: Visual Studio Code, the AL Language extension, and GitHub Copilot. This post walks through the full setup, plus a couple of gotchas that trip up newcomers.

What you need before starting: a Business Central sandbox environment, a GitHub account with an active Copilot subscription, and admin rights on your machine.

Step 1: Install VS Code. It's the only Microsoft-supported IDE for AL development, so unlike some tooling choices in this series, there's no alternative to swap in here.

Step 2: Install the AL Language extension. Search for "AL Language" in the Extensions panel and install the Microsoft-published version. One nuance worth knowing: if you're developing against a specific BC container or sandbox version — common in partner/consulting environments — Microsoft recommends pulling the AL Language extension version that ships directly from that container, rather than the Marketplace version, to avoid compiler-version mismatches that show up as confusing symbol or compilation errors. For most people getting started, the Marketplace version is the right call.

Once installed, open the Command Palette and run AL: Go! This single command creates your project structure, connects to your BC tenant, downloads the symbols your extension needs to reference standard BC objects, and scaffolds a working sample object to start from.

Step 3: Verify the AL connection. Open the sample file and publish it to your sandbox (Ctrl+F5). If it launches cleanly in the BC web client, your foundation is solid.

Step 4: Install GitHub Copilot. This is a separate subscription from both your BC license and VS Code itself — worth knowing upfront so a sign-in wall or "no active subscription" message doesn't throw you off mid-setup. Installing the Copilot extension typically brings Copilot Chat along with it.

Step 5: Verify everything is connected. With your sample AL file open, run /explain this file in the context of Business Central AL development. in Copilot Chat. A response that correctly references your specific file confirms VS Code, AL, your BC connection, and Copilot are all working together.

One setting worth changing immediately: VS Code sends telemetry to Microsoft by default. If that matters to you, search "telemetry level" in Settings and set it to off.

With that, your environment is ready. The next post in this series covers Copilot's chat modes and slash commands — the core vocabulary used in every AL development video from here forward.



Regards,

Saurav Dhyani

Comments

Popular posts from this blog

Microsoft Dynamics NAV 2016 - How to Configure Phone Client.

Hi All, In this article we will discuss how we can connect Microsoft Dynamics NAV 2016 with New Client Launched i.e. Phone Client. This Article Contain Steps for a Android Phone as I have Only Android Phone. I am doing it having all tiers on my windows 8 machine, steps remain same for multiple servers but issues might be different. What we Need (Other what we discuss in this article) -  The Service Tier should be on Public IP . Some of the Data-card does not Provide you Public IP. check it for sure.

MSDYN365BC - Data Upgrade To Microsoft Dynamics 365 Business Central on premises.

Hi Readers, We have already talked about the number of steps for upgrading to Business Central on Premises from different NAV versions. After that article, I received multiple requests for an article which list down steps for Data Migration. In this article, we will discuss steps of data migration to MSDYN365BC (on-Prem) from NAV 2017. For this article, I am considering a Cronus Demo Database without any customization. For an actual upgrade project, we will have to complete object merge using compare and Merge process. After the Merge Process, the next step is data migration. Let's discuss those steps. Direct Upgrade to Microsoft Dynamics 365 Business Central (on-Prem) is from following versions - 1. NAV 2015. 2. NAV 2016. 3. NAV 2017. 4. NAV 2018.

How to Set Up NavUserPassword Authentication in Business Central.

Hi Readers, In this article we will discuss steps to Setup NAVUserPassword in Business Central on-prem. NavUserPassword is an authentication method that's handled by Business Central Server, but isn't based on Windows users or Active Directory. Each user is set up with a username and password that's configured inside Business Central only. The user is prompted for username/password credentials when they start the client. #msdyn365bc, #credentialtype