473,503 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Solution Explorer

Is there is a shortcut key/menu item to collapse all the project folders in
the solution explorer.
Nov 20 '05 #1
3 1379
On Mon, 19 Apr 2004 15:31:57 +0100, Nice Chap wrote:
Is there is a shortcut key/menu item to collapse all the project folders in
the solution explorer.


On a tree view, the left arrow key collapses and the right arrow key opens.
Perhaps this will help you?

--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
Nov 20 '05 #2
Hi

You can do it with macros..

1) Open Tools->Macros->Macros ID
2) Right-Click 'MyMacros' and add a new module named 'SolutionExplorerMacros
3) Paste the following code into the body of the macro:

\\
Public Sub CollapseAllSolutionProjects(
Dim objUIHierarchyItem As UIHierarchyIte
Dim objUIHierarchySubItem As UIHierarchyIte

For Each objUIHierarchyItem In CType(DTE.Windows.Item("{3AE79031-E1BC-11D0-8F78-00A0C9110057}").Object, UIHierarchy).UIHierarchyItem
For Each objUIHierarchySubItem In objUIHierarchyItem.UIHierarchyItem
With objUIHierarchySubItem.UIHierarchyItem
If (.Count > 0) The
.Expanded = Fals
End I
End Wit
Nex
Nex
End Su

Public Sub ExpandAllSolutionProjects(
Dim objUIHierarchyItem As UIHierarchyIte
Dim objUIHierarchySubItem As UIHierarchyIte

For Each objUIHierarchyItem In CType(DTE.Windows.Item("{3AE79031-E1BC-11D0-8F78-00A0C9110057}").Object, UIHierarchy).UIHierarchyItem
For Each objUIHierarchySubItem In objUIHierarchyItem.UIHierarchyItem
With objUIHierarchySubItem.UIHierarchyItem
If (.Count > 0) The
.Expanded = Tru
End I
End Wit
Nex
Nex
End Su
//

You can then add toolbar buttons and/or menu items to the IDE for these macros and assign shortcut keys to them if you want to

HTH
Gary
Nov 20 '05 #3
Gary,

Thanks a lot, the macros really did the trick !! Thanks once again.

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1563
by: n3crius | last post by:
I've noticed that when I'm programming Windows applications in the .net sutdio I can't see an expansion option in the Solution Explorer to get the .cs behind the WindowsForm. In contrast, I can...
2
2137
by: Julijan Sribar | last post by:
Hello, In my application I want to display same icons that are displayed in Solution Explorer. I know that these icons are in csproj.dll file (for C# projects), but Solution Explorer does not...
1
2215
by: Max Khitrov | last post by:
Hello everyone, I'm working on a VS .NET add-in that will allow developers to use Subversion software from within the IDE (much like Source Safe). Ideally, I would like for my plug-in to be able...
4
1725
by: Alpha | last post by:
I have a small Window application and through out the different forms I create a different dataset. At the begining I used the Tools to drag and drop the SqlDataAdapter, connection and dataset...
7
4842
by: Larry Woods | last post by:
I don't see the pattern. I have a couple of solutions that I acquired from someone else. When I load these, I see the .vbproj and .vbproj.user files in the Solution Explorer. BUT, when I create...
6
18555
by: I_AM_DON_AND_YOU? | last post by:
I have a small VB.Net Solution. The solution has filename LABELMAKER.SLN and the the project has filename LABELMAKER.VBPROJ. There is another file LABELMAKER.VBPROJ.USER. All these are in a...
2
2942
by: Bruce Russell | last post by:
This may sound stupid but I can't rename the WebForm1.aspx in the solution explorer. The file is located in my local web server at C:\Inetpub\wwwroot\Lab3-VB-Starter\WebForm1.aspx Is there...
0
1090
by: José Joye | last post by:
Hello, Is there a way within VS2005 to synchronize the Solution Explorer view and the file we are currently working on. Say I'm working on blabla.cs file which is located within the foo...
5
1518
by: =?Utf-8?B?U2NhbmJveQ==?= | last post by:
Guyz, I want to remove items from the Solution Explorer. The VBE 2005 help system claims that to do this, you have to:- 1. Select the item you want to remove. 2. On the 'Edit' menu,...
3
1548
by: Ryan Liu | last post by:
I was supervised that Vista is so difficult to use(e.g. search), lost so many good features (e.g. go upper level folder) and so unstable(even MS own programs will hang up, back to Windows 95/98...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.