VC++:"minimizing" all functions in doc at once

Discussion about everything. New games, 3d math, development tips...
Post Reply
shadowslair
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

VC++:"minimizing" all functions in doc at once

Post by shadowslair »

Hi!

I`m using Visual C++ 2008 Express and just wondering if there`s some way of "minimizing" all functions in the current document at once-like a key combination or so, because it turned that sometimes I need to close each function manually to get better visibility, which is quite tedious. Talking about those squares with "+/-" in front of them, leaving only the name of the function/class etc.

Thanks. :wink:
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: VC++:"minimizing" all functions in doc at once

Post by randomMesh »

The correct term is 'folding'.

I found this (it's for the Visual Studio .NET IDE, but maybe it's the same with other IDE from MS.)

Fold/Unfold the current code block - Ctrl+M, Ctrl+M
Unfold all - Ctrl+M, Ctrl+L
Stop outlining - Ctrl+M, Ctrl+P
Fold all - Ctrl+M, Ctrl+O
"Whoops..."
shadowslair
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Post by shadowslair »

That`s exacly what I wanted. Looks like I searched for the wrong term. Thanks randomMesh. :wink:
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Hmm... personally I've never used function folding... It's a nice idea but I don't like hiding things away like that really... Something which I use at work which was advised to me by two other people, one from another company, is RockScroll.. which turns your scroll bar into a thin window showing all the code in the current file. It's so small you can't really see what the code is but if you know the file well then you can find your way around pretty well and it highlights changes that have been made so you can clearly see where you've been making your changes and jump between them in a flash!
Image Image Image
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

shadowslair wrote:Looks like I searched for the wrong term.
Hehe, like me for the first time. It's hard to find something if you don't know how it is called.
JP wrote:RockScroll
This tool looks nice! Too bad it's for Visual Studio only. :?
But now i have a mission. To find something similar for Eclipse.
"Whoops..."
Post Reply