How to customize Visual Studio Solution Explorer right click menu options? - visual-studio

I've been using Visual Studio since further back then I can remember. Over the years, each new release saw a trend of an ever-growing number of options added to the right-click context menu in the Solution Explorer. 99% of the time I use only 5% of these context menu options. I would like to know if it is possible to remove items from the context menu?
For example:
Open Visual Studio->Create a Solution->Add a project to it->Find the project in the Solution Explorer->Right click on the project->Observe a large number of right-click-menu options.
I'm currently using Visual Studio 2019 CE with a C# build environment.

You can delete items from the project context menu going to Tools - Customize - Commands - Context menu - Project and Solution Context Menus | Project:

Related

How to reset the context menu in VisualStudio to have default items?

Am using VisualStudio 2013, update2. I am facing the below issue when I opened a project in VisualStudio today, I noticed on right clicking a project in the SolutionExplorer the context menu have a lot of options that even have scrolling now. Now I have to scroll down everytime to build or clean a project.
Earlier it was like a short menu like below.
I have not changed any settings but don't know why am facing this issue. I tried to customize the context menu command and chose (Project and solution context menus | Project) from the drop down, but that didn't worked out as it is automatically reset to tfs on clicking the close button. Does any one have idea about how to rectify this?
Note: The context menu has changed only for the projects inside the solution. On right clicking the solution name in solution explorer, I am still getting the same old menu.
From looking at your context menu screenshot, it looks like you have some extensions installed that have introduced these commands. Try disabling some or all of them in Tools > Extensions and Updates Manager to see which ones belong to which extension. There unfortunately isn't a way right now to customize this context menu.
Thanks,
Cathy
Visual Studio IDE Team

Remove Visual Studio Qt add-in items from project context menu

I'm using Qt add-in for Visual studio. It adds some items in project context menu, available from solution explorer. Here is the context menu. Not so small, right? Thanks Qt for additional 8 items, while they are completely duplicated by the main menu and I'm not ever going to use 7 of them anyway.
Is there a way to get rid of them? Uninstalling add-in is not an option.
Found it! In Visual Studio, go to Tools -> Customize -> Commands -> Context menu -> Project and Solution Context Menus, and all the items are there! Modify as you want!

Solution Folder Not Showing in Visual Studio 2010 - How Can I Make It Visible?

I created a new Blank Solution in Visual Studio 2010, then I did an Add New Project, and the Solution node no longer shows in the Solution Explorer.
Further, when I try to do a second Add New Project, I get the error:
Cannot add the item because the item to add it to is not a solution folder or the solution.
What happened to the Solution node?
Where is it, so that I can highlight it and add a second project to my solution?
Tools, Options, Projects and Solutions, check "Always show solution"
Trivial update:
I'm on Visual Studio 2010, Ultimate edition. Windows 2008 R2, Enterprise edition, SP1. My guess the difference between #arrocharGeek screenshot and mine is I turn off all the vista/win7/2008r2 eye candy to make it look "normal."
You need to show the solution as follows:
Navigate to Tools | Options
Check the "Show all settings" checkbox in the bottom left of the Options dialog
Navigate to the "Projects and Solutions" | "General" section
Check the "Always show solution" checkbox
The "Solution solution-name (n projects)" will now show, and you can highlight that node to Add New Project from there.
Trivial Update: My VS 2010 is SP1Rel, and I am on Win7 Enterprise SP 1:
In order to view Solution explorer. Go to View > Solution explorer.
Or press Ctrl+Alt+L.
And solution window will appear.

Adding a Menu Button into VS2010 TFS Query Result or Work Item bar

I am trying to add button(s) to the Visual Studio / TFS2010 Work Item query results menu bar and also to the menu bar shown for individual Work Items (see image below) - is that actually customizable & doable and if so, how?
I would take a look at this post:
TFS 2010 - Adding a menu item to the Completed Builds context menu in the Build Explorer
It discusses the steps you need to take to add menu items to context menus.
To answer my own question (as the one by NGM was helpful but it did not directly answer it.) - no it is not possible as the Work Item & Query Windows inside Visual Studio, particularly their toolbars, are not callable as commands in a VS (SDK) sense.
Basically they are merely WinForms controls (well, were for VS2010, I think this has changed to WPF in VS2013 by now) placed inside a WinForms form hosted inside a VS ToolWindow. The toolbars I outlined above cannot be customised via the VS SDK.
This may have changed in VS2012 or VS2013, but for VS2010 there was/is no way to add custom items into the two toolbars I asked for back then.

Cannot customize Solution Explorer project context menu in VS 2010

I'm trying to customize that context menu which comes up when you right click the project in the Solution Explorer.
When I goto: Tools - Customize - Commands - Context Menu (radio button) - Project and Solution Context Menus | Project (drop down)
I get nothing in the "controls:" list. I can modify other context menus starting with "Project and Solution Context Menus" but none of them is the right one.
Any ideas? Currently I have ReSharper, PowerTools and StyleCop installed, but I have installed and uninstalled bunch of other addins (dotTrace, CodeIt.Right, VisualHG, DevExpress, random stuff from Extension Manager).
Uninstalling ReSharper 5.0 fixed the problem.

Resources