Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Preferably a tool which will run from inside of the Delphi IDE (I use Delphi 7), but I can accept a standalone program.

Should have the ability to define rules (X space indent, no tabs, one statement per line, etc, etc (perhaps capitalization rules too?))

Nice if it can handle an entire directory or project at one touch, rather than just a single file.

Anyone?

share|improve this question

2 Answers 2

up vote 6 down vote accepted

The Jedi Code Formatter (JCF) is the best I've found. There are a couple of plugins for Delphi 7, the Delphi Formatting Expert (DelForExp) which is also available as a plug-in for GExperts.

The JCF is more configurable, but the GExperts addin is more convenient for me because I have GExperts installed. It's flexible enough to cater for my needs. It has "all open files" and "whole project" modes, but that has the usual problem of ignoring anything not listed in your dpr file.

share|improve this answer
    
+1 and the answer. Either one of those will work for me. Thanks –  Mawg May 16 '11 at 5:11

There is a delphi code formatter built into Delphi XE, also. It can not handle the entire directory in one go. You simply hit Ctrl+D when you want to reformat the unit in the editor.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.