Anyway to prevent Delphi from automatically touching uses clauses
Posted on 2008-10-01
I find it most annoying that Delphi insists on helping you by tweaking your uses clauses and would like to know if anyone has found a way to turn this off. I'm even willing to write an OTI plug-in for the IDE if it can be handled that way, but I hoping its just a checkbox I've overlooked. The way we structure projects these features are a much bigger annoyance than help. It also adds unnecessary coupling to the project. Specifically:
1) Adding a unit, automatically adds it to the DPR uses clause when 99.9% of the time it is never needed there AND (without warning) wipes out any conditional defines you may have in the uses clause as part of the process.
2) Adds tons of unnecessary units to the interface uses of and unit with a dfm every time you touch the file. Makes it virtually impossible to keep a lean, structured uses clause if a form is involved.