Lazarus

Using the Lazarus IDE => Editor => Topic started by: derles on July 17, 2017, 10:21:17 pm

Title: [SOLVED] Automatic deletion of empty procedures and functions
Post by: derles on July 17, 2017, 10:21:17 pm
After updating version 1.0.10 to 1.6.4, I noticed that an editor's behavior has stopped working: the automatic deletion of empty procedures and functions.
The empty procedures disappeared after saving files, but no longer.
I can't find in Tools - Options anything to re-enable that option, if it exists.
Any advice ?
Tks.

Lazarus: 1.6.4
FPC: 3.0.2
OS: Windows 7
Title: Re: Automatic deletion of empty procedures and functions
Post by: howardpc on July 17, 2017, 10:28:13 pm
Tools > Options...
In the Options dialog under the Editor node in the treeview on the left click on
    Completion and Hints
The first checkbox needs to be ticked: "Auto remove empty methods"
Title: Re: Automatic deletion of empty procedures and functions
Post by: derles on July 17, 2017, 10:59:36 pm
Oh, so simple!
Thank you very much howardpc
Title: Re: [SOLVED] Automatic deletion of empty procedures and functions
Post by: ertank on July 31, 2017, 12:53:15 am
Using Lazarus 1.8.0RC3 that functionality is not working for me *if following met*
- Put a visual component on form.
- Make an empty implementation body for any event of that component.
- Delete componen from form.
- Save and see if empty body removed automatically when option is on.
Title: Re: [SOLVED] Automatic deletion of empty procedures and functions
Post by: howardpc on July 31, 2017, 12:59:46 am
The functionality is working as advertised for 1.8.0RC2, so it must be caused by a recent change.
TinyPortal © 2005-2018