Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>AL Structure CreatorNew to Visual Studio Code? Get it now.
AL Structure Creator

AL Structure Creator

EdySpider

|
14,175 installs
| (11) | Free
Create folder structure for AL projects
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Banner

AL Structure Creator

CI License Visual Studio Marketplace Installs Visual Studio Marketplace Version GitHub release (latest by date) GitHub issues

Features

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.

ALStructureCreator-CreateAllStructure

ALStructureCreator-CreateStructure

ALStructureCreator-ReorganizeFiles


Requirements

  • Dynamics 365 Business Central.
  • Visual Studio Code 1.95 or later.
  • 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: TableEmployeeMgt.al, EmployeeMgtTable.al, or a file that starts with table 50010 "Employee Mgt.").
  • 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 Reorganize Files command.

The ObjectIdent/ObjectIdentification settings are used by the Reorganize Files command. When more than one identifier matches a file name (for example Page and PageExt in CustomerPageExt.al), the longest one wins.


Customization

You can add your own folders to the default structure. VS Code merges your FolderStructure value with the default one, so you only need to write the folders you want to add or change. Keep the folder keys in lowercase (pageext, not pageExt).

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
Create-Cust --createcust To also create a "<name>cust" folder for customizations (e.g. pagecust)
Subfolder --subfolder To add subfolders inside the main folder

ALStructureCreator-StructureSettings ALStructureCreator-NewStructureSettings


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. Type one of the folder keys or shortcuts below, or the key of a folder you added to FolderStructure.
Folder Code/Structure Folder Name Shortcut/Parameter
logo logo 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
--enumext enumext enuext/enumext
--interface interface int/interface
--page page pag/page
--pageext pageext pagext/pageext
--permissionset permissionset pers/permissionset
--permissionsetext permissionsetext persext/permissionsetext
--profile profile pro/profile
--query query que/query
--report report rep/report
----layout layout lay/layout
--reportext reportext repext/reportext
--table table tab/table
--tableext tableext tabext/tableext
--xmlport xmlport xml/xmlport
translation translations tran/translation
webservice webservice web/webservice
  • ES: Reorganize Files: This command moves the application files from the project root to the corresponding folder: AL objects by their type, report layouts (.rdl, .rdlc, .docx, .xlsx) to layout, images to logo and .xlf files to translation. Files that already exist in the target folder are skipped.

Keyboard Shortcuts

Shortcut Command
Alt+E Alt+C ES: Create All Folder Structure
Alt+E Alt+R ES: Reorganize Files

The shortcuts only work when a folder or workspace is open.


Release Notes

Release 2.0.0. See the CHANGELOG for the full list of changes.

  • Folders for extension objects (enumext, pageext, permissionsetext, reportext, tableext) are now created and used correctly.
  • Reorganize Files now recognises every AL object type, including reportextension, and no longer stops at the first error.
  • Working keyboard shortcuts and a validated FolderStructure setting.
  • Breaking: the pageExt folder key is now pageext. If you customised it, rename the key in your settings.

Authors

  • EdySpider
  • Eder Leal da Silva

License

  • MIT license
  • Copyright 2020 © EdySpider.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft