Re: [Lazarus] Adding unit automatically adds to uses clause

2022-03-26 Thread Bart via lazarus
On Sat, Mar 26, 2022 at 6:00 PM Timothy Groves via lazarus wrote: > Can anyone tell me how to stop Lazarus from > doing this? Yes, it's annoying. Project->Options->Miscalleneous: uncheck "Main unit has uses section containing all units of a project." I think this is a per project setting and n

Re: [Lazarus] Adding unit automatically adds to uses clause

2022-03-26 Thread Martin Frb via lazarus
On 26/03/2022 18:00, Timothy Groves via lazarus wrote: Good day.  When I click on "New Pascal Unit" on the toolbar, or select it from the menu, the new unit is automatically added to the uses clause of my main program.  Worse, the new unit is invariably added as "unit1", even after I change the

[Lazarus] Adding unit automatically adds to uses clause

2022-03-26 Thread Timothy Groves via lazarus
Good day.  When I click on "New Pascal Unit" on the toolbar, or select it from the menu, the new unit is automatically added to the uses clause of my main program.  Worse, the new unit is invariably added as "unit1", even after I change the name of the unit.  I cannot seem to find a way to supp