Jon
Jon

Reputation: 40032

Delphi equivalent to Ctrl+K+D in Visual Studio?

Does Delphi 7 have the Ctrl K D option like Visual Studio to format the code ie/tidy it up and put all the indents etc in the right place?

Upvotes: 3

Views: 587

Answers (3)

philnext
philnext

Reputation: 3402

You may use the very efficient JEDI code format.
I use it as an external tool, but a Delphi IDE pluggin can be installed for Delphi 7.
For use as an external tool :
1/ download the jcf_243_exe.zip
2/ unzip it in a directory
3/ run the JCFGui.exe : choose your project directory (save it before) and look the results !
4/ you may change the code format rules in the menu 'settings'/'Format settings'

Upvotes: 0

Gerry Coll
Gerry Coll

Reputation: 5975

For earlier versions of Delphi there is an "experimental" build of the GExperts plugin which has a configurable code formatter. It is available from TWM's website.

I have been using it to tidy up some inconsistently formatted code (written by multiple developers, none of who used MY layout style (based on the old Borland Style Guide)

Upvotes: 3

Michael Madsen
Michael Madsen

Reputation: 55009

In Delphi 2010 and later, Ctrl+D will activate the built-in formatter - but before then, there was no such feature in the IDE.

For Delphi 7, you will have to use a third-party plugin which provides a formatter.

Upvotes: 7

Related Questions