Wish Option to Display and Edit a Single Sub in the Code Editor

LucaMs

Expert
Licensed User
Longtime User
I know this feature request has most likely been suggested before, but I believe it would be a very useful addition to the B4X IDE, so I think it is worth bringing up again.

The idea is to have two alternative viewing modes in the code editor:
  1. Full Module View (current behavior): The editor displays the entire class or code module, as it does today.
  2. Single Sub View: The editor displays only the currently selected Sub, hiding all the other code in the module.
For example, when working on a large class containing dozens or even hundreds of Subs, I would sometimes prefer to focus exclusively on one particular Sub, without having the rest of the module's code displayed.

The selected Sub could be determined using the existing Sub selection dropdown in the IDE.

Switching between the two modes should be quick and easy, allowing the developer to return to the full module view at any time.

Of course, this would only be a different way of displaying the existing source code: no code duplication, no separate editing window, and no changes to the actual source file.

The main benefit: a cleaner editing environment, allowing developers to concentrate on the specific routine they are working on, especially when dealing with large classes and modules.

I believe this could significantly improve the coding experience, particularly for developers working on large projects.
 
Note that you can show subs in separate windows and double clicking on code in that sub will take you to the exact position in the main editor. Hover over the sub name and click on "show in window". The window is read-only.
???

I konw only the last part (which is useful for reference purposes only); I don’t see the first two or perhaps I didn’t understand them.

Note that you can show subs in separate windows
Perhaps this is what you mean:
B4J_Dv07JXhH8A.gif
 
Last edited:
Back
Top