- Home /
Is there a workaround for the MonoDevelop collapsing bug?
Since Unity (finally!) upgraded MonoDevelop to version 4, a new very annoying bug has showed up: every time you save a file, the collapsing fails: everything is un-collapsed, and can't be collapsed any more (the collapsing buttons disappear, and the collapsing keyboard commands just do nothing).
After a random while, it goes back to normal. So far I've been unable to understand if there is one specific action that triggers it back to normal, or it really is totally random (though this seems very unlikely to me).
Is there a known workaround?
(closing a file and re-opening it doesn't count)
Answer by Lohoris2 · Jan 18, 2014 at 11:58 AM
There is.
As long as you both add any character and remove any character, the collapsing works again (preserving the bookmarks).
So after you save, you can hit the sequence: "space, backspace, undo, undo" (I've added the undo steps so that the file still counts as "unmodified".
I have same problem, I go through all the script to collapse the code, after I check for errors or save, everything is uncollapsed. Doing the answer from above only lets you recollapse them, it does not collapse the are of the script that I have already collapsed. It's pretty bad especially if you have a long script and trying to collapse so you know where you are.
Your answer
