Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-03

Is this RC2 issue or my unknowledge?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

JuuS

Happy Friday,

Before I put on RC1, then RC2, I would find that adding a procedure gave something like this in body:

procedure TfrmJuuRSync.EditButton1Change(Sender: TObject);
begin
end;

I would then realize I don't want this procedure. If I left it blank, no code lines added, and recompiled the program the IDE took out the empty proc as well as the declaration in the class. I really liked this.

Or: I would have a procedure/function I no longer wanted. I simply deleted all code and var declarations, recompiled and the IDE took out the unneeded code for me, in the body and in the class.

But since my installing RC's it is not doing this anymore. Which means I have to delete the procedure body manually, then go to the class and delete the declaration.

Am I missing something? Have I clicked a checkbox in Options that I shouldn't have?

Thanks, enjoy.

Julius

Reply by email

Howard Page-Clark
to JuuS
JuuS wrote 13 lines
Happy Friday, Before I put on RC1, then RC2, I would find that adding a procedure gave something like this in body: procedure TfrmJuuRSync.EditButton1Change(Sender: TObject); begin end; I would then realize I don't want this procedure. If I left it blank, no code lines added, and recompiled the program the IDE took out the empty proc as well as the declaration in the class. I really liked this.

This is controlled from the

Tools-> Options menu

In the IDE Options dialog select the Editor->Completion and Hints page

Make sure to check "Auto remove empty methods"

Howard

---
This email has been checked for viruses by Avast antivirus software. http://www.avast.com

Reply by email

JuuS
to Howard Page-Clark
Howard Page-Clark wrote 22 lines
On 27/03/2015 20:40, JuuS wrote: > Happy Friday, > > Before I put on RC1, then RC2, I would find that adding a procedure gave > something like this in body: > > procedure TfrmJuuRSync.EditButton1Change(Sender: TObject); > begin > > end; > > I would then realize I don't want this procedure. If I left it blank, no > code lines added, and recompiled the program the IDE took out the empty > proc as well as the declaration in the class. I really liked this. This is controlled from the Tools-> Options menu In the IDE Options dialog select the Editor->Completion and Hints page Make sure to check "Auto remove empty methods"

Thank you!

Show quoted text 14 lines
Howard --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email