Hiding and collapsing output

The menu items View → Hide and View → Unhide allow the user to hide/collapse and unhide/uncollapse part of IDA's output.

Hiding instructions or data items

It is possible to hide or replace some parts of the listing by a short text.

To do so:

  1. Select some instructions or data items

  2. Invoke View → Hide (or Ctrl+Numpad-)

  3. Enter the replacement text and optionally pick a color.

The selected instructions, or data, are replaced by the entered text. They are not removed from the database. They can be made visible again by using View → Unhide (or Ctrl+Numpad+)

Hiding a whole function

To hide a whole function, place the cursor on the function name, then View → Hide (or Ctrl+Numpad-). You can also right-click on the function as shown below:

Terse struct representation

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 in full, or verbose form, with each field on a separate line and a comment with the field name. Conversely, you can use Hide to collapse a structure instance into a terse form. Note that it may not work due to the specific structure's layout.

Collapsing blocks in the decompiler

The decompiler also has a similar pair of actions. They are available via the context menu or the Numpad- and Numpad+ hotkeys.

Last updated

Was this helpful?