What you appear to be missing is a "symbols view / pane". Most IDEs have that!
So getting this right and ergonomic I think is important regardless of whether there is a symbol tree or similar (which can also be useful).
Even the Atari 2600's Basic Programming had that. (It's an entire IDE in 4K of ROM.)