How to remove elements from the context menu in Visual Studio - windows

How to remove elements from the context menu in Visual Studio? I am not using all of this items, how can I still just some of them?

In Visual Studio 2017 this procedure will work:
Open "Tools" menu
Click "Customize..."
Click the "Commands" tab
Click the "Context menu" radiobutton
From the combobox on the right select the context menu you want to change
Now you should have the following dialog showing where you can remove/add items from the context menu:

Related

Visual Studio --> Copy a selected control name to clipboard

It is a pain to pick a button name from the "Properties" grid window or even from "Document Outline" window
I want something like :
Right click a button or any other control in a form then from the context menu choose --> "Copy Name"
or a Shortcut key to copy the control name to clipboard
can I have a macro to do that inside visual studio 2010
or is there extension to do that ??
any idea ??
Edit:
CompCopy extension but for Visual Studio 2017 not Visual Studio 2010
As you can see from the shortcut list, there's no such a thing; but you can do it almost as easily as you said:
From the properties window, click the "AZ" button to sort your properties alphabetically; (Name), i.e. the name of the control, will be the third from the top and will stay that way
Click the control you want to copy the name of, e.g. a button
Press F4 to select the property window, where the name will be there for you to copy

Visual Studio - Is there simple way to add 'Close Solution" to r-click in Solution Explorer

I can't seem to break the habit of always right clicking on the solution to try and close a solution. Then I always remember and take my mouse the great distance across the screen to find it in the File menu.
I don't use it enough to remember a keystroke.
I use VS2008, VS2010 and occasionally VS2012
I'd prefer not to build an addin just for this small task.
In Visual Studio 2010 you can:
Right click on the Tool menu and click "Customize..".
Click the "Commands" tab.
Click the "Context menu" option.
Select the "Project and Solution Context Menus | Solution".
Click the "Add Command..." button.
Select "File" in the "Categories" list box.
Select "Close Solution" in the "Commands" list box.
Move up/down as desired.
Click "Close" and enjoy.
I don't have VS 2008 or 2012 handy, but the steps should be similar.
Edit: For VS2008
Right click on the Tool menu and click "Customize..".
Click the "Toolbars" tab.
Check the "Context menu" option. (the Context Menus tool bar will appear)
Select Command Tab in the current dialog.
Select "File" in the "Categories" list box.
Select "Close Solution" in the "Commands" list box.
Drag the Command to the "Select the "Project and Solution Context Menus" in the context Menus toolbar. You can drop it anywhere on the menu or in a sub menu - ie "Project and Solution Context Menus | Solution"
Click "Close" and enjoy.
VISUAL STUDIO 2019
Here is the way to do this with COMBINATION KEYS, that it is so better than add it to toolbar or context menu :)
Go to Tools menu
Go to Options
Press Ctrl+E and search Keyboard // OR go to
Environment>Keyboard
In right side type CLOSE in search bar(below of "Show
commands containing" I mean)
Go down and select the "File.CloseSolution" from the results
Click on the box "Press shortcuts keys:" and specify your
combination's key
Be aware that Visual Studio has a lot of default combination keys and do not use any regular shortcut.( I used Ctrl+F4)
Check the "Use new shortcut in:" and select your place that want to
use this shortcut (I suggest to use GLOBAL)
Click Assign > OK > Have Fun
You can close the solution by simply clicking File->Close Solution in Visual Studio 2017

Visual Studio 2010: Name of document tab context menu

Does anyone know the name of the context menu that you get when right clicking a document tab in Visual Studio 2010?
I want to add the "Close All Documents" command to it, but I cannot figure out which context menu it is in the customize dialog.
You can find that menu at Other Context Menus | Easy MDI Document Window.

How to open new doc tab labels on the right side in Visual Studio?

When I open a new doc, its tab label appears on the left side of the bar. How can I make it appear on the right?
For Visual Studio 2012 and later, this setting has moved to the "Tabs and Windows" section.
Updated directions are:
Click on the "Tools" menu, and select "Options".
Under the "Environment" heading in the listbox on the left, click on the "Tabs and Windows" item.
Check the box labelled "Insert new tabs to the right of existing tabs". This should be the first checkbox in the panel, in the "Tab Well" section.
To instruct Visual Studio that you want new tabs opened to the right of existing tabs:
Click on the "Tools" menu, and select "Options".
Under the "Environment" heading in the listbox on the left, click on the "Documents" tab.
Check the box labeled "Insert documents to the right of existing tabs".
In Visual Studio 2015, this option has been moved to Options --> Environment --> Tabs and Windows.
In Visual Studio 2019, this option is still under Tools->Options->Environments->Tabs and Windows, but it has been moved down. It is now placed under Group tabs by project/path:
In Visual Studio 2017 is the same like in Visual Studio 2015.
Tools->Options->Environments->Tabs and Windows
You mus check "Insert new tabs to the right of existing tabs"

How do I restore a menu to the Visual Studio 2008 menu bar?

My Alt key was unknowingly stuck down and I tried to open my Window Menu in VS, which resulted in removing the menu from the bar.
My question is, how the heck do I get it back?
Right-click on one of the visible Toolbars, select Customize...
(or Tools > Customize... menu)
Then in the Toolbars list, select Menu Bar, then click the Reset button

Resources