This extension allows you to create the folder structure for AL projects and help you organize the application files.
You can also customize the standard structure or use other names to create a folder structure that best suits you.
Requirements
Dynamics 365 Business Central.
Visual Studio Code.
AL Language Extension for VSCode.
Extension Settings
This extension contributes the following settings:
ALStructureCreator.FolderStructure: This configuration allows you to define the folder structure for AL projects that best suits you.
ALStructureCreator.ObjectIdentification: This configuration defines how to identify the objects files, by the object prefix/suffix filename or
reading the file. Prefix,Suffix or Object (e.g: TabEmployeMgt.al,EmployeeMgtTab.al, ..OBJECT Table 50010).
ALStructureCreator.ObjectIdent.<ObjectType>: This configuration defines how to identify a specific object file by its prefix/suffix name.
ALStructureCreator.ObjectIdent.MaxReadLine: Set this configuration to limit the amount of lines to read when identifying the objet type for
the ReorganizeFiles action.
The ObjectIdent/ObjectIdentification. settings are used for the action to reorganize the project files inside a specific folder.
Customization
You can add your own structure to the default settings but it's important that you follow the existing properties as it is.
Property
Example
Description
Folder Key
doc
Key name of the folder
Name
--docs
Name of the folder when created
Auto-Create
--true
To automatically create the folder when call "Create All Folder Structure" command
Subfolder
--subfolder
To add subfolders inside the main folder
Extension Commands
This extension contributes the following commands:
ES: Create All Folder Structure: This command create all application folder structure for AL projects.
ES: Create Folder Structure: This command create a defined application folder for AL projects. Follow the allowed application folders/subfolders
and shortcut name.
Folder Code/Structure
Folder Name
Shortcut/Parameter
logo
logo
log/logo
object
src
src/obj/object
--codeunit
codeunit
cod/codeunit
--controladdin
controladdin
ctrl/controladdin
--dotnet
dotnet
dnet/dotnet
--entitlement
entitlement
ent/entitlement
--enum
enum
enu/enum
--interface
interface
int/interface
--page
page
pag/page
--permissionset
permissionset
pers/permissionset
--profile
profile
pro/profile
--query
query
que/query
--report
report
rep/report
----layout
layout
lay/layout
--table
table
tab/table
--xmlport
xmlport
xml/xmlport
translation
translations
tran/translations
webservice
webservices
wb/webservice
ES: Reorganize Objects: This command move the applications objects from the root folder to the corresponding application folder.
Release Notes
Updated release 1.7.x.
Added Features
Add object folders extension (pageext, tableext, ..) as part of source folder setup and not as property folder.
Update object files reorganization to include object extension folders.