The Code Formatter expert was the reason I originally got involved with GExperts development. It is based on the formatter formerly known as DelForEx by Egbert van Nes who donated the code to the GExperts project. It has been heavily improved and supports some (but unfortunately not all) language extensions introduce by later Delphi versions. It’s now the Code Formatter expert, available on the Editor Experts tab.
Click on the picture to see it full size.
(todo: This page needs to describe the configuration dialog.)
See also the Add To Formatter Captialization Expert