In visual studio, there seems to be no way to collapse all of a project's folders in solution explorer?
Does anyone know how this can be done?
Anyone? This has dogged me for years, i just wish there was a way without macros and addins, like they mention in this similar question Collapse all files at once in Solution Explorer window in Visual Studio
Microsoft released a pretty handy extension called CollapseSelection which does just that.
Yes you can.
Right click the project in solution explorer > Unload.
Then reload the project.
An age old problem fixed.
(Original answer by the OP, hidden inside the question. Now a true answer. Community Wiki to prevent unfair rep gain).
Related
I've really enjoyed Anders Hejlsberg presentation at BUILD 2011 and it's not the first time that I notice someone having a collection of code snippets available within Visual Studio's Toolbox window, so given that all the searches I've performed so far pointed me to how to deal with IntelliSense snippets, I was wondering if anyone knows how to achieve this?
You just need to copy the code to the toolbox. A simple selection of the code, and a drag and drop to the toolbox just make it available. It will not be deleted until you delete it (at least that never happens to me by itself)..
This is what you need?
I am writing Visual Studio 2010 add-in. Purpose of this add in is to show all the VS solutions from a particular folder. We have around 100 solutions under our trunk folder. After add-in explore the folder and listed out solutions, developer would click any one of those solution to open it in same VS window. I have already a created a windows form in C# to list the solutions. Now I need to write a code to open the selected solution into the same VS window. I am not expert in Add-in writing. Any help would be appreciated.
Take a look at the Solution Load Manager extension. Source code available here.
The folders under my solution in the Solution Explorer window randomly expand. This happens everytime I load the project, and randomly as I use Visual Studio 2008. The behavior seems to have no real pattern, and it's like it has a mind of it's own. Any ideas on what I can do to keep behaving like you would imagine it should (expand/collapse only when the + or - is clicked on)?
Tools + Options, Projects and Solutions, General. "Track Active Item in Solution Explorer" option. Feature, not a bug.
I'm watching the PluralSight tutorial videos, and during one of the code samples I noticed this in the solution explorer.
What is the name of the plugin/tool that lists the All Open Unsaved Edited in the solution explorer?
It's a Solution Navigator - part of Productivity Power Tools by Microsoft.
Its a Solution Navigator. You can read about it from this link
http://blogs.msdn.com/b/visualstudio/archive/2010/07/20/solution-navigator-blog-post.aspx?PageIndex=4
in Visual Studio 2008 it was possible to open a collapsed #region by simply double clicking somewhere behind (to the right) of the #region.
Now in VS 2010 you have to double click exactly the #region, double clicking behind it just selects the #region.
I've browsed the options but didn't find anything helpful and neither did google help.
Does anyone know of a way to switch back to the old behavior?
Thanks,
Florian
In Visual Studio 2010 the editor has been rewritten from scratch. It is quite likely that they just "forgot" to re-implement this functionality, thus causing a regression. If you feel strongly about bringing it back, I'd open a new bug at https://connect.microsoft.com/visualstudio/feedback
I don't think you can do it with the mouse anymore. Your best alternative is Ctrl+M, M (that toggles the current outline section).