Forum > Editor

[SOLVED] Automatic deletion of empty procedures and functions

(1/1)

derles:
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

howardpc:
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"

derles:
Oh, so simple!
Thank you very much howardpc

ertank:
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.

howardpc:
The functionality is working as advertised for 1.8.0RC2, so it must be caused by a recent change.

Navigation

[0] Message Index

Go to full version