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.
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
- Properties
- Object-specific constructs such as
- Table fields
- Page layout
- Actions
- Global variables
- Labels
- Global variables
- 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.
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.
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.
Press (Ctrl+.
) or click on quick actions icon to get list of suggested variable names, and select a name that you want to use.
You can report issue on Github