Formatting code is often a pain, indenting lines, trying to align stuff etc. But not with Microsoft Dynamics 365 Business Central and AL in Visual Studio Code. Now you can just do “format document” 🙂

Here is a quick example, before code is not indented at all:

Hit Shift-Alt-F or Format Document in the Command Palette:

and boom:

How Cool is that? When copy pasting code or inserting a surrounding if statement, just hit that shift-alt-F and your code is formatted nicely.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.