Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>AL Code Cleanup ExtensionNew to Visual Studio Code? Get it now.
AL Code Cleanup Extension

AL Code Cleanup Extension

Ala Weslati

|
703 installs
| (4) | Free
The AL Code Cleanup extension for Visual Studio Code is a powerful tool for cleaning up and formatting AL (Dynamics 365 Business Central) code. It provides various features to help developers maintain a consistent and clean codebase.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AL Code Cleanup Extension

Description

The AL Code Cleanup extension for Visual Studio Code is a powerful tool for cleaning up and formatting AL (Dynamics 365 Business Central) code. It provides various features to help developers maintain a consistent and clean codebase specifically after converting Objects from C/AL to AL.

Features

  • Remove Double Quotes from Object IDs: Automatically removes unnecessary double quotes from AL object IDs.

  • Clean Dataitem Table IDs: Removes the word "Table" from dataitem declarations to simplify convert object id.

  • Clean AL Built-In Functions: Converts AL built-in function names to modern camelCase format. For example, it changes "SETRANGE" to "SetRange" in AL Language, making the code more readable and aligned with modern AL coding practices.

Installation

  1. Open Visual Studio Code.

  2. Go to the Extensions view by clicking on the square icon in the sidebar on the left or by pressing Ctrl+Shift+X.

  3. Search for "AL Code Cleanup" in the Extensions view search bar.

  4. Click the "Install" button for the AL Code Cleanup extension.

Usage

  1. Open an AL code file in Visual Studio Code.

  2. Use the provided commands:

    • AL Code Cleanup: Remove Double Quotes from Object IDs in the Active Editor
    • AL Code Cleanup: Clean Dataitem Table IDs in the Active Editor
    • AL Code Cleanup: Clean AL Built-In Functions in the Active Editor
  3. The extension will automatically clean up your code based on the selected command.

Contributing

If you have suggestions, issues, or want to contribute to this extension, please visit the GitHub repository for this project.

Author

  • AlaWeslati

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