User forums > Help
Remembering code fold states
(1/1)
@nthony:
I don't think I've come across a way to do this yet and I'm not sure if one exists, but is there a way to have CodeBlocks remember/save the state of your code foldings for each file/project?
joubertdj:
Yes and No :)
What happens if you edit the file in a normal text-editor and open it again in C::B?
If you fix that issue, you still have an issue with size of the project file for all the files used within your workspace... each line's fold state have to be remembered...
A patch was uploaded that gives additional options with "Folding All" on open, but this seems not to have made it to the SVN... Will have to ask killerbot about this!
raph:
Well, I've never used code folding, but I like the idea :D
--- Quote from: joubertdj on January 26, 2007, 07:58:13 am ---What happens if you edit the file in a normal text-editor and open it again in C::B?
--- End quote ---
No problem, just save the file size or a file checksum with the fold states. If the file was modified outside cb, reset the fold states.
--- Quote from: joubertdj on January 26, 2007, 07:58:13 am ---If you fix that issue, you still have an issue with size of the project file for all the files used within your workspace... each line's fold state have to be remembered...
--- End quote ---
This probably won't be much data.
Maybe:
--- Code: ---filename
hash or size
line
line
line
...
--- End code ---
where line is the absolute line number, which is folded.
I think this would help developers to get along with the source, if they are continuing work, a little bit :)
joubertdj:
8) Well then, hack away! It sounds promising!
Navigation
[0] Message Index
Go to full version