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

AL Navigator

Waldemar Brakowski

|
11,763 installs
| (2) | Free
Create variables and parameters like a boss. Navigate through al files with awesome shortcuts.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AL Navigator

Create variables and parameters like a boss. Navigate through al files with awesome shortcuts.

Features

Shortcuts

Shortcut Command Name Description
Ctrl+Alt+g AL Navigator: End of global variables Moves cursor to the end of your global variables.
Ctrl+Alt+l AL Navigator: End of local variables Moves cursor to the end of your local variables.
Ctrl+Alt+k AL Navigator: Keys Moves cursor to the keys in your .al table file.
Ctrl+Alt+a AL Navigator: Next Action Moves cursor to next action in a page .al file.
Ctrl+Alt+d AL Navigator: Next DataItem (starting from top) Moves cursor through data items in your .al report file.
Shift+Alt+d AL Navigator: Next DataItem (starting from bottom) Moves cursor through data items in your .al report file.

Create Variables and Parameters

CodeAction for AL0118: Create a local/global variable or a parameter by using the quick fix lamp (Ctrl + .).

Example 1: Create local variables

Create Variables 1

Example 1: Create global variables

Create Variables 2

Example 3: Create parameters

Create Variables 2

Tips: How To Use the CodeAction

Tip Example
Variable Names for objects like records can automatically be created if they follow the naming conventions. Vendor can be recognized as Record "Vendor". Demo
Use the Prefix "Temp" to create a temporary record variable. TempItem can be recognized as temporary Record "Item". Demo
You can use Microsoft's suggested abbreviated variable names to create variables. GLSetup will be recognized as Record "General Ledger Setup". Demo
Some frequently used variable names will be automatically created. ItemNo can be recognized as Code[20]. Demo
Use a placeholder character as variable name and replace it with the suggested variable name. variable name "x" can be replaced by "SalesLine" when the record "Sales Line" has been selected. Demo
Change the settings "alNavigator.ignoreALPrefix" and "alNavigator.ignoreALSuffix" to ignore these affixes when detecting or creating variables. Set "alNavigator.ignoreALPrefix" to "EX". If you have a table called "EX Test Table" and use the variable name "TestTable", it can be automatically be created. Demo

Create Variables for Objects Like Records

Create Variables 4

Prefix Temp

Create Variables 5

Abbreviated Variable Names

Create Variables 6

Frequently Used Variable Names

Create Variables 7

Replace Placeholder

Create Variables 8

Affixes

The prefix "CCO" is removed for the suggested variable name because we set the "alNavigator.ignoreALPrefix": CCO Create Variables 9

Settings

Setting Description
alNavigator.ignoreALPrefix Removes prefix from suggested variable names.
alNavigator.ignoreALSuffix Removes suffix from suggested variable names.

Requirements

AL Language vs marketplace
AZ AL Dev Tools/AL Code Outline vs marketplace

Thanks to

  • David Feldhoff for his contributions and feedback
  • Andrzej Zwierzchowski for providing such an awesome API for his AZ AL Dev Tools/AL Code Outline extension

Additional information

The functionality of this extension is constantly evolving. To not bloat this readme too much, you can find more detailed documentations and details on my blog (https://navinsights.net/category/al-navigator/).

Git Repository

https://github.com/wbrakowski/AL-Navigator

Picture Attribution

Alpaca Icon

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft