How to collapse all trees in registry editor?

0

While using regedit.exe, sometimes, it's relevant to collapse everything and start from a zero.

How do you collapse everything and start over? Found some solution(s) using Visual Basic, but it's not what some might want, actually.

V.7

Posted 2019-10-15T16:59:26.437

Reputation: 140

Answers

1

For example, it might be handier to use PowerShell:

  1. Close Regedit(regedit.exe)
  2. Run Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit" -Name "LastKey"

Also, it's possible to edit same key using *.reg file and executing it with contents:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit]
"LastKey"=""

These both removes its own key which stores last viewed location which is opened everytime registry application executes making it ignore it.

V.7

Posted 2019-10-15T16:59:26.437

Reputation: 140

0

There are only 5 main headings. Collapse each one and you are done. I do this every time I use Regedit.

John

Posted 2019-10-15T16:59:26.437

Reputation: 5 395

Fair enough. This option works too when choosing "Computer"(the very first one) and restarting application. Although, this won't let it automate in an adequate way. – V.7 – 2019-10-15T17:09:49.753

It only take 15 - 20 seconds to collapse all – John – 2019-10-15T17:22:42.297

0

This is one way:

  • Type Home to position to "Computer"
  • Exit regedit
  • Next time it will start with all branches closed.

Another way is to press down Shift and press Left Arrow to collapse the current subkey. Pressing down on the Left Arrow key until it starts repeating is a fast way to climb out of a very deep branch.

harrymc

Posted 2019-10-15T16:59:26.437

Reputation: 306 093