I actually have a good Idea for a possibly rather easy implementation of this feature:
We are actually using AutoReplace for our instrumented Code with *.tpl (template) files.
I imagine it could be easy to hide/expand some of the autoreplaced code by just showing the key ( and maybe the parameters used for a template).
Example:
Autoreplace:
LOG_DEBUG=LOG_DEBUG.tpl
The Template has one Parameter:
if G_Debug then alqmsg00.log_debug(G_ProcName, '&Text', G_PkgName, G_ID); end if;
So it would be nice to show in the code something like:
LOG_DEBUG('debug message') in a special color to indicate this is actually a template.
This is not the same as completly hiding the instrumentation code. But that would be an easy step from there.
So in short:
1) Add a property to a template "show template Name in Code".
2) Have three options to view the code: full, show templates as name only, templates hidden.
The reason for 1): There are templates which you don't want hidden (and probably can't hide anymore), because you will fill in code. Actually maybe it would be enough to just not hide the template if it is "broken" (=edited) but I still like the idea better to have control over which templates to make hideable.