delphikeyboard-shortcutsdelphi-2007

Shortcut to Indent the code in Delphi 2007


Is there a way to indent the code in Delphi? I have to work on a program that has thousands of lines of code. In eclipse which I had worked before, I have used CTRL + SHIFT + F to format all code by formatting tabs/whitespaces and also divide code lines in a way that it is visible without horizontal scroll. Is there a way to do the same in Delphi?


Solution

  • I assume you are looking for a way to format the code in the whole unit with indentation.

    This is not included in the regular IDE. But there is a code formatter contained in an 'experimental' version of the GExperts:

    http://blog.dummzeuch.de/experimental-gexperts-version/