This tutorial will show you different ways to collapse and close all or specific registry keys and branches in the Registry Editor (regedit) tree in Windows 10 and Windows 11.
System configuration information is stored centrally in a hierarchical database called the registry. You can use Registry Editor to add and edit registry keys and values, restore the registry from a backup or to default values, and to import or export keys for reference or backup.
If you use the Find and Find Next feature in Registry Editor to search for keys, values, and data, it can expand (open) several keys and branches on the tree for you to collapse (close) afterwards if wanted.
Contents
- Option One: Close and Collapse All Keys at Once in Registry Editor
- Option Two: Close and Collapse All Keys Except Last Key at Once in Registry Editor
- Option Three: Collapse Specific Keys in Registry Editor using Context Menu
- Option Four: Collapse Specific Keys in Registry Editor using Caret on Tree Menu
- Option Five: Collapse Specific Keys in Registry Editor using Left Arrow Key
EXAMPLE: Registry Editor with all keys closed and all branches collapsed in tree
1 Perform either action below in Registry Editor:
- Press the Home key.
- Click/tap on Computer in the left pane.
- Press the Alt + F4 keys.
- Close (X) Registry Editor.
1 Perform either action below in Registry Editor:
- Press the Alt + F4 keys.
- Close (X) Registry Editor.
1 Right click on an expanded key or branch you want to collapse in the left pane of Registry Editor. (see screenshot below)
2 Click/tap on Collapse to collapse the current key or branch.
Collapsing a branch or key will not close subkeys.
1 Click/tap on the caret (v) for an expanded key or branch you want to collapse in the left pane of Registry Editor. (see screenshot below)
Collapsing a branch or key will not close subkeys.
1 Select an expanded key or branch you want to collapse in the left pane of Registry Editor.
2 Press the Left Arrow key to collapse the current key or branch.
Collapsing a branch or key will not close subkeys.
That's it,
Shawn Brink
Last edited:











