Wish [B4X] Duplicating a Subroutine

LucaMs

Expert
Licensed User
Longtime User
I won't be brief and concise 😊

This "Wish" will be the very last on Erel's list; in fact, it probably won't be considered at all: it requires work (obviously) and would be used very little.

As you know, pressing CTRL+D simultaneously will duplicate a line of code in the editor (and, very usefully, a view in the Designer).
Sometimes (?) I duplicate an entire routine (Sub), to modify it while keeping the original version. To avoid having two routines with the same name, which the IDE doesn't like 🤭, before duplicating I rename the original routine, for example by adding "_1," then I remove these characters from the name of the "new" routine and modify it. This is obviously, because other parts of the project will call this new routine, ignoring the "old" one.

In short. It would be nice if pressing CTRL+SHIFT+D achieved the above: duplicating a routine, adding "_1" or "_OLD" to the name of the routine to be duplicated.
 
Top