You may have come across the menu items View > Hide, Unhide but possibly never used them.
These commands allow you to hide, or collapse and unhide/uncollapse parts of IDA’s output. They can be used in the following situations:
To make your database more compact and reduce clutter, you can opt to hide or replace some parts of the listing by short text:
The instructions/data are replaced by the entered text but are not removed from the database; you can reveal them using View > Unhide (or Ctrl+Numpad+).
You can also hide or collapse whole functions by using the Hide command while the cursor is on the function’s name:
You may have already seen the “COLLAPSED FUNCTION” text for library functions detected by the FLIRT signatures (colored cyan in the function list and navigation bar). The actual implementation of library functions is rarely important for analyzing the program’s code so IDA collapses them to not distract the user.
Structure or enum definitions can be collapsed and uncollapsed similarly to functions.
When defining structure instances in data, IDA will by default try to display them in terse form, with everything on one line. By using Unhide, you can have it printed in full, or verbose form, with each field on separate line and a comment with the field name.
Conversely, you can use Hide to collapse a structure instance into a terse form (this may not work in some cases due to the specific structure’s layout).
The decompiler also has similar but separate pair of actions. They are available in the context menu or via the Numpad- and Numpad+ hotkeys. You can collapse compound operators, as well as the variable declaration block at the start of the function.
Collapse/uncollapse item (Decompiler)