User forums > Using Code::Blocks
New Folding Issue
Vampyre_Dark:
I'm looking through some code that has lots of
typedef struct
{
int member;
}struct_name;
blocks in it. When it opens it all folds by default, and none of the struct names can be seen. :?
PhyloGenesis:
goto Editor options, the folding tab, and deselect the option to fold all on load
Vampyre_Dark:
--- Quote from: PhyloGenesis on July 21, 2006, 09:46:19 am ---goto Editor options, the folding tab, and deselect the option to fold all on load
--- End quote ---
:lol: That's not the problem. I want everything to be folded. The problem is being unable to see what the structs are.
PhyloGenesis:
We'll I was going to put it in as a feature request that when they fold, they don't fold the closing bracket.
My reason was that when if statements are folded, it looks like the next statement (after the close) is part of the if, but your reason makes sense to.
Oh, and for me, even though I have the option on, nothing is folded when I open files...
kidmosey:
It might be tedious, but you could try updating all the structs to the following format:
--- Code: ---typedef struct _struct_name
{
int member;
} struct_name;
--- End code ---
That way, the struct has a name and the typedef has a name. I believe this is the standard way of defining typedef structs, anyhow.
Navigation
[0] Message Index
[#] Next page
Go to full version