Is there a way to “collapse” functions and values in VS2008, like one would do for objects in languages like C#? It’s incredibly time-consuming and frustrating to wade through hundreds of lines of nested function definitions.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So, the official answer is that this is not supported. However, when I was doing an internship with the F# team, I wrote a prototype implementation of this feature. Because the F# team had other more important things to do, this was never properly tested and it was not included in the final version.
The code for the feature is actually still present in F# and the feature can be turned on by adding the following to the
devenv.exe.configfile:Apparently, it’s not exactly what you wanted, because you can only collapse modules and type definitions, but it could still be useful – it is difficult to decide what to make collapsible in F#, because F# has so many nested declarations…
BTW: Did I mention that this is not tested and it can crash Visual Studio or even collapse the universe?