Solution Explorer Context Menu Too Long - visual-studio-2010

Ok, so I installed plenty of useful extensions from Extension Manager in Visual Studio 2010.
I really like them but now my context menu in solution explorer is way too long.
So long in fact that I have to scroll down/up using little arrows which is really annoying.
Any solution to that anyone?

The problem is that when you right-click on an entity within the Solution Explorer, the resulting context menu is so loaded down with options, extensions, menus, lists and levels that you have to start scrolling around to get anywhere.
The solution is to declutter that context menu by removing unneccessary items. This can be achieved through the Commands tab of the Tools -> Customize dialog. Specifically, click on the Commands tab, and select the Context Menu button to start customizing anything and (almost) everything to do with those context menus.
Many of the entities within the Solution Explorer have some sort of representation here; the biggest issue you have will be finding the right place to start customizing.
For example, I have a method of Source Control integrated within the Visual Studio environment which causes 7 new menu items to appear when I right-click on a project (Check In, Check Out, Get Latest Version, etc). I do all of my source controlling outside of Visual Studio, so these menu items are just clutter to me. I go to Project and Solution Context Menu | Project and delete anything and everything related to Source Control. Now, when I right-click on a project, none of those options appear in the menu.

Related

VS 2008 Under debug menu the "Save Dump As..." tab appearing many times

I'm using Visual Studio 2008 for a while now and i just noticed that under the "Debug" menu there are many disabled tabs of "Save Dump As...".
There are so many tabs like this that i can scroll the debug menu and it seems like i can't even reach the end of it all. I want to know why it is happening and how can i solve it.
I managed to find where i can edit this menu, in VS they call it "Commands".
Under "Tools->Customize->Rearrange commands..." select your current menu bar and remove the unnecessary command.
I still don't know why this is happening, but now it's easy to maintain.
You can also rearrange the menus as you wish, which is nice.

Hide items in the right-click context menus in Visual Studio 2010 (08)?

The right-click context menus of the source editor, the project items and the solution item, is getting ridiculously long, and two of them even have scrolling now on my 1680x1050 screen.
Is there any way for me to hide items on these menus, even if I have to add an event to my Visual Studio macro-system and find and hide them manually?
Here's examples, many of these items I never use:
Edit1: The current answer + comments suggest I should use the Customize menu item in the toolbar context menus, go to the second tab, Commands, and use the Context Menus radio selection and find the relevant menus there.
Here are 3, which are suggested by comments:
As you can see, they're all empty.
Edit2: After clicking the "Reset All" button in that dialog, for the Solution and Project menus, I got items in the dialog, that I could edit, but the changes did not affect the actual context menu on either a project or the solution file. Also, after restarting Visual Studio, the dialog contents for those two were again empty.
In Visual Studio 2010 you can:
Goto Tools->Customize
Select the Commands tab
Select the Context menu radio button
Select the appropriate context menu from the dropdown list to the right, and delete away
I believe Visual Studio 2008 is similar.
You will need to choose the correct context menu in the Customise option.
Go to Tool > Customise,
Then choose the Context menu as you did in your Edit1 screenshots but choose "Editor Context Menus | Code Window" from the dropdown menu instead.
From there you should be able to delete whatever command you don't need from your context menu. Next, for the other commands that can't be found in Editor Context Menus | Code Window (mostly plug-ins or extensions related commands) you will have to go through other categories.
For example, I am using CodeMaid and when I right click a file in Solution Explorer the context menu below are shown
In order to remove the 'Cleanup Selected Code' command I will have to choose the Project and Solution Context Menus | Solution Folder dropdown option.
Added: Here is my sample reduced context menu (removed Copy, Cut, Paste, Outline Menu and Create Snippet...)
Hope this helps =)
Edit: In case you want to add back the commands you removed you can either add them back using New Command... or just press Reset All. Keep in mind the later will restore all the commands. Thus unless you are really having trouble finding the removed command use the first method.
I use 3 VS extensions and these 3 are responsible for polluting the context menu:
VSCommands
Power Commands
Power Toys
Using their own options dialogue, it's possible to subject showing those menus to pressing CTRL (in VS Commands) or completely disable them (the other 2 extensions)

How to configure my solution to show all projects collapsed on Visual Studio?

Every time I check out my solution from the SCM I have to collapse manually each project in my solution to get a good overview of it.
I know that the collapsed settings are stored in a .suo file, which is binary. I don't want to commit this file to the SCM, instead I am looking for a xml tag that I could put in the .sln file so when I open it all projects are collapsed.
How to do that?
Install DPack for Visual Studio and use the "collapse all projects" context menu item ;-)
Install Productivity Power Tools and use Solution Navigator instead of Solution Explorer:
Solution Navigator is a new tool window that acts like an enhanced Solution Explorer. With it, you can:
* Expand code files to navigate to its classes, expand classes to navigate to their members, and so on (C# and VB only)
* Search your solution, all the way down to class members
* Filter your solution or projects to see just opened files, unsaved files, and so on
* View related information about classes and members (such as references or callers/callees for C#)
* Preview images by hovering over them, or preview rich information by hovering over code items
* We've also added support for multiple selection and drag & drop. (New!)
It also haves a collapse all button.
The smallest plugin that helped me is Collapse Selection In Solution Explorer

Customize project context menu of visual studio

I'm using Visual Studio 2010 with some add-ins and extensions. The problem is now that the context menu of the project items in the solution explorer is getting so large that I always have to scroll down for the "Properties" and the "Open in Windows Explorer" which I use most.
This is getting very nasty.
Is there a possibility to group commands into a sub menu or to modify the position of the commands in the context menu?
Yes, it can be edited.
Go to 'Tools' -> 'Customize...' -> and select the 'Command' tab.
Select Context Menu and pick Project and Solution Context Menus | Project
You can always use the keyboard to do the work for you.
The default binding for Properties is Alt+Enter (or sometimes F4 depending on what add-ins you have installed). Select the project in Solution Explorer and hit Alt+Enter to show it's properties. (This works for almost any other object as well, btw).
The default binding for view SolutionExplorer is Ctrl+Alt+L, so you don't have to use your mouse to get there.
There is no default binding for opening a project in Windows Explorer, but you can set one yourself.
The keyboard bindings are set under Tools->Options...->Environment->Keyboard, and the interesting settings in this case are probably View.SolutionExplorer, Project.OpenFolderinWindowsExplorer and View.PropertiesWindow or Project.Properties depending on which propertiy collection you were referring to.

Solution Explorer Project Context Menu

Is there a way of adding other options (specifically Add Interface) to the projects right click context menu (Right Click a project > Add > [Class, new Item, new form,...])?
I found one option in the customize dialog to place an 'Add Interface...' item in, but this is always disabled. I found that one under the Projects category of menu customization, so i assumed it would work...
Any ideas?
I'm currently trialing ReSharper, and that has it's own set of Create New context menu entries (which are key bindable), and these support everything I am after.
The ReSharper "Create New" dialogue is a lot faster to respond than the in built Visual Studio one too.

Resources