JALVariableNaming READMEThis extension eases AL business central variable naming following its own coding rules. FeaturesFor this purpose, we have these commands:
Snippet Code.The snippet behavior is this:
JAL Var Selection variable naming.This command renames the variables in editor selection. Notice that this command executes a symbol renaming. It means that if you have declared and used the variable in its scope rename the variable using too: This option is available in the context menu. You can disable the context menu removing the check in JALVarNaming.EnableContextMenus extension config. JAL Var Begin AL variable editing modeWith this command, we begin the variable editing: If we are in a blank line it puts “var” line. First intro puts this text in your editor: “WriteTypeAndSubtype: “ When you write type and subtype and push intro key, editing mode make this job:
If you want to disable this mode you can execute with F1 "JAL Var Stop AL variable editing mode" command. JAL Set usage category from an old txt menu fileWith this command you can set the usage category for Pages and Reports from an old txt menu file. Previously you had to export from C/SIDE a txt object with all the menus. Then, you can follow these steps:
Option to Enum: BetaUtility to convert Options to enum. Steps:
Snippet Include ParametersTyping "tincludeParameters" snippet after open parenthesis in procedure name, you get all procedure parameters: Snippet get keysTyping "tGetKeys" snippet after "Setcurrentkey(" statement you get a multi-selection of all table keys: Snippet labelLast contribution is the snippet label, to declare labels in al code. Typing "tlabel" snippet is triggered: Snippet trepeatDocLinesIt is very usual to iterate into document lines: we make over and over the code to iterate sales lines form a sales header. This snippet is to declare a repeat document loop: first you type snippet trepeatDocLines, and then you can select the document you want to iterate, transfer, sales shipment, purchase receipt and only with two these two steps you will get all the lines looping: Other standard Business Central documents have a Document Type field. Sales Line, Purchase Line, Assembly Line. To iterate into these documents you can use the snippet trepeatDocLinesWithDocumentType. The other related snippet es tRepeatWhseDocs (warehouse activity, warehouse receipt, warehouse shipment, pick). RequirementsVSCode and Al language. This last is not a real pre-requisite, but do not make sense use this with other tool. Extension SettingsThis extension contributes the following settings:
Known IssuesCalling out known issues can help limit users opening duplicate issues against your extension. Release NotesSee changelog |