Skip to content

wbrakowski/AL-Navigator

Repository files navigation

AL Navigator

Create variables and parameters like a boss. Translate fields on hover. Navigate through al files with awesome shortcuts.

This extension is written in TypeScript Number of installs Share the love! If you like AL Object ID Ninja, give it 5 stars. Last Visual Studio Code Marketplace update

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.

Show Translations

Show translations on hover over symbols (field names, table names...)

Show Translation On Hover

AL Navigator: Show Microsoft Translation (English -> Target Language)

Show Target Translation

AL Navigator: Show Microsoft Translation (Target Language -> English)

Show English Translation

Copy Reports including Layout

Copy reports including layout

Copy reports including layout

Create report extension including layout

Create report extension including layout

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.
alNavigator.translationTargetLanguage Defines the target language for translation functionalities.
alNavigator.maxNoOfShownTranslations Maximum number of shown translations when using translation functionalities.
alNavigator.enableHoverProviders Enable Hover Providers (requires reload). AL Navigator shows the translations for the target language on hover for symbols (field names etc.)

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

VS Code Marketplace

https://marketplace.visualstudio.com/items?itemName=wbrakowski.al-navigator

Picture Attribution

Alpaca Icon

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •