Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CAL to AL ConverterNew to Visual Studio Code? Get it now.
CAL to AL Converter

CAL to AL Converter

TAHER El Mehdi

|
496 installs
| (2) | Free
Convert NAV C/AL .txt files to AL Business Central objects.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

C/AL to AL Converter for Visual Studio Code

The C/AL to AL Converter is a migration tool for converting Microsoft Dynamics NAV (C/AL) .txt files to Business Central .al objects directly from VS Code.

Command:

  • Convert C/AL to AL — available in the VS Code Explorer context menu for .txt files and folders.

Settings

Open Settings (Ctrl + ,) and search for CAL to AL Converter.

Setting Default Description
calToAl.type (all) Convert only a specific object type: Codeunit, Table, Page, Report, Query, or XmlPort. Leave empty to convert all types.
calToAl.extensionStartId 70000000 Starting numeric ID for extension objects, incremented by 1 for each object.
calToAl.objectFileNamePattern {type}-{id}.{name} File name pattern for AL object files. Placeholders: {name}, {type}, {id}.
calToAl.extensionObjectFileNamePattern {type}-{id}.{name} File name pattern for AL extension object files. Placeholders: {name}, {type}, {id}, {targetName}, {targetId}.
calToAl.tableDataOnly false For table objects, convert only table and field definitions — methods and trigger code are excluded.
calToAl.injectDotNetAddIns false Inject standard .NET add-in definitions into the output .NET package.
calToAl.dotNetAddInsPackage (empty) Path to an AL file containing custom .NET type declarations to include in the package.
calToAl.dotNetTypePrefix (empty) Prefix applied to all .NET type aliases created during conversion.
calToAl.addLegacyTranslationInfo false Add legacy translation mapping info to translation files to help migrate existing translated resources.
calToAl.runtime (latest) Target AL runtime version, e.g. 15.0. Leave empty to use the latest supported runtime.
calToAl.dataClassificationDefaulting (empty) Default DataClassification value applied to all table fields that don't have it set.
calToAl.verboseLogging true Capture full conversion output — stdout, warnings, and errors — to the log file. Also implicitly enables stacktrace.

Acknowledgements

This extension is a VS Code wrapper around the txt2al tool developed by Microsoft, which handles the underlying C/AL to AL conversion. For full documentation on supported flags and behaviour, see the official Microsoft reference: txt2al Conversion Tool — Microsoft Learn

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft