VS Code extension for formatting AL files.
- Indentation
- Keyword case style
- Sort variable definitions
- Readability Guidelines - Spacing and newlines (experimental)
To format a file click alt + shift + f
or use the format document feature in VS Code.
Issues can be reported to the project on Github.
git clone https://github.com/RasmusTidselbak/al-formatter.git
cd al-formatter/server
npm install -D
export PATH=`pwd`/node_modules/.bin:$PATH
npm run compile
cd ../client
npm install -D
export PATH=`pwd`/node_modules/.bin:$PATH
vsce package
- RDLC Reports
- XMLPorts
- Lists, Dictionaries and Control Addins
- Fixed a couple of issues when indenting IF THEN ELSE statements, DO WHILE and BEGIN END
- Implemented an entire new code structure, which is more dynamic
- Implemented newline and spacing. Enable it under settings - alForm.experimental
- Fixed an issue with var parameters in procedure definitions
- Implementet the readability guidlines for variable definition and operators.
- Fixed an issue with textconst definitions
- Fixed an issue with wrong casing on object definitions