Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 3.44 KB

README.md

File metadata and controls

56 lines (38 loc) · 3.44 KB

Microsoft Dynamics 365 Business Central - AL Productivity Tools

Visual Studio Marketplace Version Visual Studio Marketplace Installs Visual Studio Marketplace Rating Visual Studio Marketplace Rating (Stars)

This extension is intended to provide developer tools to increase your productivity in developing Microsoft Dynamics 365 Business Central extensions. Commands in the current release are mainly focused on AL Coding Guidelines, and File naming notation. Currently available commands are focused on fixing some of the common warnings, and errors raised by CodeCop analyzer.

Commands and Usage

Fix AL CodeCop Issues

Run the 'Fix AL CodeCop Issues' command from the Command Palette (Ctrl+Shift+P).

This command will do the following

  • File structure - AL Code will be arranged in the following order

    1. Properties
    2. Object-specific constructs such as
      • Table fields
      • Page layout
      • Actions
    3. Global variables
      • Labels
      • Global variables
    4. Methods
      • Global
      • Local
  • Variable declarations (Rule AA0021) - Variable declarations will be ordered by type.

  • Line length - If the length of the method declaration is too big, it will convert the declaration into multiple lines.

  • Type definition (colon) - Variable, and parameter declarations are auto corrected.

  • The EventSubscriber method must be local (Rule AA0207) - Converts EventSubscribers method to local.

  • Keywords Case Conversion - All keywords are converted to keywords in AL programming.

Fix AL CodeCop Issues In All Files

Run the 'Fix AL CodeCop Issues In All Files' command from the Command Palette (Ctrl+Shift+P). This will run 'Fix AL CodeCop Issues' command on all the files in the current workspace.

Fix AL File Naming Notation

Run the 'Fix AL File Naming Notation' command from the Command Palette (Ctrl+Shift+P). This command will fix the file naming notation as per the best practices for AL.

Fix Variable Name

Press (Ctrl+.) or click on quick actions icon to get list of suggested variable names, and select a name that you want to use.

Report an Issue

You can report issue on Github