Every time I add a new form to my project, it drops a big glop of boilerplate in the uses clause.
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
Seriously, who uses the Variants unit on anything resembling a regular basis? I generally end up removing Windows, Messages, Variants, Graphics and Dialogs and never missing them.
That’s gotta be coming out of a template file somewhere, but I can’t seem to find it. Does anyone know where I can find the template and edit it? I’m using D2009, in case it’s changed recently.
The according resource is located in $(BDS)\bin\delphivclide*.bpl and named “VCLIDECMD”; you can extract, edit and update it with the resource editor of your choice (I recommend the one included in Pelles C).
For C++Builder users, the template file is “CPPVCLIDECMD” in bcbvclide*.bpl.
If you are using a localized version of RAD Studio, look at the appropriate language resource files (*.DE, *.FR or *.JA).