Prevent methods with empty bodies from deletion on save
It's quite a contradictory habit of mine to press Ctrl+S permanently. The negative side is that delphi deletes empty functions/procedures on save. Is there a way to prevent IDE from deleting functions/procedures with empty bodies on save? OnTheFly Converted from the comment as per OP request. My comment is too tiny for an answer, so I'm going to add few details maybe already obvious to an OP. This happens with event handlers only¹. Write them without delay or comment them with todo ² ¹ That is, event handlers are methods of design class and they are created, listed and deleted (if caught empty