AL Project Configurator is a Visual Studio Code extension that synchronizes default settings in AL projects from a Git repository. The extension downloads the configured repository and updates the current project's files, overwriting existing keys in .json
files with those from the source repository.
Usage video(ENU AI generated):
https://youtu.be/LCXEPYV6zI0
Usage video(ESP):
https://youtu.be/1dmaDrGQtFY
- Downloads and clones a configured Git repository.
- Synchronizes the current project's files with those from the cloned repository.
- Overwrites keys in
.json
files if they already exist, keeping the content updated.
- Node.js and npm installed on your system.
- Visual Studio Code version 1.57.0 or higher.
At the moment it can only be installed manually :)
-
Clone repository.
-
Open Terminal and position yourself in the extension folder
-
Run in terminal npm install.
-
Copy the al-project-configurator folder to the Visual Studio Code extensions folder for your user. Replace
user
with your actual username.C:\Users\user\.vscode\extensions
-
You need to close and reopen VSCode or use the VSCode Reload Window command to load the extension.
To check if it has been installed correctly, go to the extensions tab in VSCode and you will see AL Project Configurator.
-
Open the user or workspace settings in Visual Studio Code (
Ctrl + ,
). -
Search for
AL Project Configurator
. -
Configure the Git repository URLs in the corresponding fields:
AlProjectConfigurator.PTETemplate
: URL of the PTE template repository.AlProjectConfigurator.ProductTemplate
: URL of the product template repository.
{
"AlProjectConfigurator.PTETemplate": "https://github.com/NovoaDev/ExamplePTECFG.git",
"AlProjectConfigurator.ProductTemplate": "https://github.com/NovoaDev/ExampleAppSourceCFG.git"
}
It is important that we only place the files and keys that we want to be snatched.
https://github.com/NovoaDev/ExamplePTECFG
https://github.com/NovoaDev/ExampleAppSourceCFG
-
Open the project folder where you want to load the settings.
-
Open the command palette (
Ctrl+Shift+P
) and executeAL Project Configurator: Load configuration from template
. -
Select the template type (
PTE
orProduct
). -
The extension will clone the configured repository, validate that it contains an
app.json
file, and then synchronize the current project's files with those from the cloned repository, overwriting keys in the.json
files.