Lazarus

Using the Lazarus IDE => Options => Topic started by: RedOctober on December 24, 2017, 02:55:42 am

Title: I need my empty procedures deleted upon compile
Post by: RedOctober on December 24, 2017, 02:55:42 am
I've just today (as of 2 hours ago) started using Laz and I love it!  I've been using Delphi since version 1 in 1996. 

Problem Description:

I often will click on the OnClick event of something that I later changed my mind about, and so an empty OnClick event gets created.  I see them there in my code still, even after I compile.  I think Delphi cleans those up on Save.  (there are no comments or anything else between the "begin" and "end".

Question:

How do I get Laz to clean these up for me?  ("clean" = delete them)
Title: Re: I need my empty procedures deleted upon compile
Post by: molly on December 24, 2017, 03:01:53 am
Hi RedOctober,

Perhaps Menu -> Tools -> Options -> Editor -> Completion and Hints -> Auto remove empty methods does what you want ?
TinyPortal © 2005-2018