AL Language standard code snippets in Visual Studio Code are available after installing the AL Language extension. These are triggered as you type within the code editor, and you can recognize them by a squared prefix symbol.
Typically, they start with the letter t and are followed by a meaningful name that describes what the snippet is about, for example, ttable or tpage. A tooltip shows a preview of the code snippet.
The following screenshot shows the standard snippet for an if-then-else conditional sentence:
Notice that if the snippet contains variable names or code identifiers, they could be highlighted, suggesting that you should give them a different name and that they act as a sort of placeholder. When you rename a highlighted identifier, all occurrences will be also renamed, making snippet usage very flexible. This will not only reduce...