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:
- Full Module View (current behavior): The editor displays the entire class or code module, as it does today.
- 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.