Use this shortcut to it:
CTRL+M+O
You can go in Edit/Outlining/Colopse to Definions.
Not in all files, but is just one command and you collpse all your code.