I love Format Document in Visual Studio Code

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.