Recent

Author Topic: I need my empty procedures deleted upon compile  (Read 2930 times)

RedOctober

  • Sr. Member
  • ****
  • Posts: 452
I need my empty procedures deleted upon compile
« 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)

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: I need my empty procedures deleted upon compile
« Reply #1 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