Alex Rivera | Logout

Delphi code formatter

Asked 2008-12-31T11:02:05.827
26

Are there any utilities that reformat Delphi code ?

EDIT

I am using Delphi 2006

Some feedback

Thanks to all that answered this question

I have been using the JCF code formatter - it works well and my code is been formated to Object Pascal Style Guide

Edit
Report

2 Answers

3

Yes,

I always used TWM's experimental version os GExperts which support this feature.

In Delphi 2006 and 2007 it works perfectly (Don't know about older versions though).

The current version is adding support to Delphi 2009, but I don't know in which stage it is, you can find more about it here:

http://www.dummzeuch.de/delphi/gexperts/english.html

answered 2008-12-31T11:18:28.430
1

The TWM version of GExperts works well and is nicely integrated into the IDE. It enables you to write and modify your code without worrying too much about exact formatting, then just hit the assigned hot-key and it instantly reformats. I have always found it easy to set up to match the style I prefer, and not as complex as JEDI Code Format, which looked like overkill to me.

The Delphi 2009 version is now available from the link posted above, though based on a beta release of GExperts. It is still much the same formatter underneath, though, and is unaware of the syntax of some of the newer Delphi enhancements.

answered 2008-12-31T12:19:39.493

Your Answer