User forums > Using Code::Blocks
New folding features...
kkez:
From the 3380 revision (i think so) C::B started to fold top blocks AND sub-blocks. That's a little annoying!
Everytime you want to see the content of a function, you have to expand all the blocks.
At the same time when you press f12 to fold/unfold a block, the subfold where the caret is is folded (well, you espect the top block to be folded, since its + sign to collapse it might be hidden...)
And the last one, when there's an error, only the block where the error line is is unfolded: see the screenshot
Is this feature wanted? All the post i've read about folding didn't have anything to do with this feature...
[attachment deleted by admin]
joubertdj:
Can you file bug report at BerliOS... Will look into it!
[EDIT] Please remember to add as much detail as possible ... (Think I have seen this bug) Have not started with this one yet... will make this and folded code deletion a priority!
joubertdj:
Uploaded a patch that ensures the when the compiler marks a line as error/warning, or when it searches for something, that it will first unfold all of the parent fold then mark the line. :)
Patch number: 001740
http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=1740&group_id=5358
kkez:
--- Quote from: joubertdj on December 19, 2006, 09:07:52 am ---Uploaded a patch that ensures the when the compiler marks a line as error/warning, or when it searches for something, that it will first unfold all of the parent fold then mark the line. :)
Patch number: 001740
http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=1740&group_id=5358
--- End quote ---
Thank you very much.
--- Quote from: kkez ---....fold top blocks AND sub-blocks....
--- End quote ---
If i'm not asking too much :) (aren't you the one who implemented this feature?), it's possible to have an option to fold only the top blocks and not the sub-blocks? Or an option to specify how deep the recursion to search for blocks should go? That would be the best...
joubertdj:
--- Quote ---...Or an option to specify how deep the recursion to search for blocks should go...
--- End quote ---
This is obviously possible... but becomes a bit tricky when Scintilla doesn't want to play along... Usually fold ALL means to fold ALL... :)
Hmm... I will see what the other devs says about this...
Do a feature request on BerliOS so that this can be tracked please!
PS. The patch was updated recenlty to ensure that unfolding blocks/goto's work correctly...
--- Quote ---...If i'm not asking too much Smile...
--- End quote ---
No you are not... a previous bug post asked that all of the folds should be folded when the Fold All option is used...
Navigation
[0] Message Index
[#] Next page
Go to full version