# 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 <kbd>Ctrl</kbd>+<kbd>Numpad-</kbd>)
3. Enter the replacement text and optionally pick a color.

![](/files/T42SSTJO0H9pqFzTFDmB)

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 <kbd>Ctrl</kbd>+<kbd>Numpad+</kbd>)

![](/files/EYv6idYX8OZP8RdYsDXP)

## Hiding a whole function

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

![](/files/vqmrmL8RHykZVo4LdEgy)

![](/files/o9g8Z8ti80DcAxJdkDPS)

## 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.

![](/files/rrTN2qmldNMkeo87VH4W)

![](/files/I1Lf0vgJais3LCZHtaR4)

## 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.

![](/files/EBrMx51jxtEG5t0oeSq6)

![](/files/1j64FEMJXJdrOkjjgZtl)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hex-rays.com/core/disassembler/how-tos/hiding-and-collapsing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
