Bug 1608 - Minimise "for" loops
Summary: Minimise "for" loops
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 2.6
Hardware: PC Linux
: Low enhancement
Target Milestone: master
Assignee: Mike Krüger
Depends on:
Reported: 2011-10-20 10:19 UTC by Chris Hardy [MSFT]
Modified: 2015-08-20 03:24 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Chris Hardy [MSFT] 2011-10-20 10:19:44 UTC
Well between the braces or brackets like

i guess you should add button on left side of for if clicked on code wil minimized.
Comment 2 Mike Krüger 2011-10-20 10:22:11 UTC
feature -> won't do this, would produce too many + on the side when doing that, tried that back a while.
Comment 3 Mikayla Hutchinson [MSFT] 2011-10-20 10:29:01 UTC
Some IDEs do this and it doesn't seem to be a problem. It can really help for large ifs and stuff like that.
Comment 4 Jeffrey Stedfast 2011-10-20 11:27:32 UTC
Mike: I'm not arguing for or against (I don't really use code folding), but what if MD only offered to collapse for-loops of >= x number of lines?
Comment 5 Mikayla Hutchinson [MSFT] 2011-10-20 11:51:40 UTC
That's a great idea - support folding all scope blocks greater than 5 lines or so.
Comment 6 Mike Krüger 2011-10-21 04:34:41 UTC
hm, I think for >= x lines it makes sense. We'll have to test that.

It produced too many clutter in the folding margin as I tried to have that on >any< block, was really awful.
Comment 7 Jeffrey Stedfast 2011-10-21 09:09:42 UTC
Yea, I can believe that...
Comment 8 Mike Krüger 2011-12-07 07:53:17 UTC
Implemented in new resolver branch (Master doesn't have the required infrastructure for that).

Btw. I would like to get some feedback about it.