4

I have observed that components has a uniform, neat and well arrange code structure. was it automatically arranged or manual?

is there a way to make it automatic? like Code Completion in Delphi?

I am using Delphi 7, 2009, 2010 XE

XBasic3000
  • 3,418
  • 5
  • 46
  • 91
  • 1
    Could you tag your version of Delphi, please ? It might be important. With that *arranged* you mean formatted, so the next question is how. Same indentation, the order of procedures, fields etc. About the Code Completion you've mentioned, try to press `CTRL + J` in your code editor and type `class` for instance and press `ENTER`. It will produce you the class skeleton by the template. But personally I would be very happy if someone answer here something in the meaning of *hey, use this tool, it will format your code exactly as the Delphi RTL is* – TLama Mar 13 '12 at 06:38
  • 2
    Its still vague, because "code structure" is really differs from the formatting. – OnTheFly Mar 13 '12 at 08:36

1 Answers1

9

the "code structure" which you observe is based usually on the Delphi Language Style Guide. Also, you can use a delphi code formatter to get similar results. The newer versions of delphi include a source formatter built in to the IDE.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
RRUZ
  • 134,889
  • 20
  • 356
  • 483