Project

General

Profile

Feature #190

Unused variables to also delete blank line

Added by Wil van Antwerpen almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
01/11/2023
Due date:
% Done:

0%


Description

Suppose this fragment of code...


Procedure SayHello
    String sVariable

    Send Info_Box "Hello!"
End_Procedure

It gets changed to...


Procedure SayHello


    Send Info_Box "Hello!"
End_Procedure

Would it be great that all blank lines gets deleted?
I know it is something personal of each one. In my case I write variables, blank line, more code.

Maybe a new refactoring tool can be developed, one that deletes blank lines just after "Procedure" (and similar) and just before "End_Procedure" (and similar).
And if we accept this, then the tool can add a blank line just after variables declaration, before and after "Forward Send (and similar), before "Function_Return" (and similar).

See:
https://support.dataaccess.com/Forums/showthread.php?69407-DFRefactor-3-2-1-0-Unused-local-variables-also-delete-line

Also available in: Atom PDF