Hi,
I really would love to have a feature that automatically searches the right unit to include for me, if I add some code.
Example:
Writing a new class from scratch and adding a member like
position: TPoint;
is simple enough.
But the compiler moans that there is some unit missing for his uses section.
So, was it...
Math, UITypes, Classes, SysUtils or maybe a LCLIntf? (*)
What I usually do is going into a unit where this type (TPoint in this example) was used already, Ctrl+Click on it and see in which file I end up, then add this to the uses clause in my file and continue the actual task.
I think this could be automated, couldn't it?
(*)Yes, it was Classes. How about TModalResult?