Find all references in VS 2013 Pro not an option anymore - visual-studio-2013

I used to be able to right click and select find all references for a method or something and then that box would open and show me all of the places in my code where it was being used. All of the sudden if I right click I no longer get that option.

This is still in all recent versions of Visual Studio. Cntl+K, R is the keyboard shortcut. If it's not appearing in your context menu, it is something specific to your VS configuration/settings.
You can edit your context menu's by the following:
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: (Editor Context Menus | Code Window or Other Context Menus | Code Window)
Add or delete context menu items as desired.
When adding a context menu command, the Find All References command is located under the Edit section.

Related

Add item to Visual Studio source control context menu

I would like to create an extension for VS Source Control Explorer context menu,
In order to add an option on the Text Editor context menu I know you need to set IDM_VS_CTXT_CODEWIN on Group's Parent node into the vsct file.
Can someone tell me the correct value for Source Control Explorer context menu?
I don't think that particular context menu guid:id pair is published anywhere. I usually try searching the various .VSCT files under the ….VSSDK\VisualStudioIntegration\Common\Inc directory to find a unique menu item in the context menu, figure out what menu group it's parented to, and work back from there.
But given the thousands of commands and menus wired into the IDE, this can be a hit or miss scenario.
When a search of the various .VSCT files on the above mentioned path doesn't pan out, I usually revert to using the EnableVSIPLogging registry key, to discover the guid:id pair for the given context menu.
Easiest way to set this is to install Mad's Extensibility Tools extension, which adds an "Enable VSIP Logging" command on the IDE's main "View" menu. Once you set this, if you hold down the CTRL+SHIFT keys, while right clicking in the Toolwindow, you'll get a diagnostic message box, with the guid and id of the context menu. You can use these as the parent for the menu group containing your command.
For example:
VSDebug Message
Menu data:
Guid = {**FFE1131C-8EA1-4D05-9728-34AD4611BDA9**}
GuidID = 962
CmdID = ***4113***
Type = 0x00000400
Flags = 0x04000000
NameLoc = (null)
OK
Where FFE1131C-8EA1-4D05-9728-34AD4611BDA9 is the context menu guid, and 4113 is the menu id.
Note, if you hold the CTRL+SHIFT while selecting an actual command, the same dialog will appear, but the guid and cmdid, will identify the specific command(menu item) selected.
Sincerely,

Can't move toolbar item into toolbar menu in Visual Studio customization

I'm using Visual Studio 2017, and I really need a menu with useful buttons in the toolbar, now when I got into the customization menu TOOLS -> Customize -> Commands.
I made a custom menu "MY_MENU" and menu item "Close Project", but for some reason I just can't move the menu item into the menu (see picture). How do I do this?
I believe I had the same problem as the questioner, and managed to solve it, details below.
Note: I use Visual Studio 2015 Professional, but this should apply to later versions as well.
Scenario
I created a new Toolbar FooToolBar, and placed to the toolbars like this:
Goal
To place the "Solution explorer" icon inside the menu.
Problem
Inside the Customize window you can't just drag&drop the item to the menu:
Solution
Inside the Toolbar combobox, a new item appeared, select that:
After this, you will see a new area where you should place the icon you wanted to.
Also, remove the previous icon from the previous, FooToolBar toolbar item.
After doing this, press OK and it will work.
Result
I hope I helped someone. :-)
Warning: After you customize a toolbar or menu, make sure that its check box remains selected in the Customize dialog box. Otherwise, your changes won't persist after you close and reopen Visual Studio.
Adding, removing, or moving a menu on the menu bar
On the menu bar, choose Tools, Customize.
The Customize dialog box opens.
On the Commands tab, leave the Menu bar option button selected, leave Menu Bar selected in the list next to that option, and then perform one of the following sets of steps:
Adding, removing, or moving a toolbar
On the menu bar, choose Tools, Customize.
The Customize dialog box opens.
On the Toolbar tab, perform one of the following sets of steps:
To add a toolbar, choose the New button, specify a name for the toolbar that you want to add, and then choose the OK button.
Customizing a menu or a toolbar
On the menu bar, choose Tools, Customize.
The Customize dialog box opens.
On the Commands tab, choose the option button for the type of element that you want to customize.
In the list for that type of element, choose the menu or toolbar that you want to customize, and then perform one of the following sets of steps:
To add a command, choose the Add Command button.
In the Add Command dialog box, choose an item in the Categories list, choose an item in the Commands list, and then choose the OK button.

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)

Visual Studio: Context Menu on Solution Explorer too long, can I add a sub menu or a toolbar above solution explorer?

My context menu on my solution explorer is way too long, although I am not complaining, this is due to the fact that I have a lot of extensions installed. Most commands I can find... but there is one pesky command that always is difficult to spot and I use it all the time.
"Set as Startup Project"
Is there a way (or an extension) that allows me to add a sub menu to the context menu for commands I use regularly or an extension for adding a toolbar on the solution window?
It doesn't require an extension, you can alter the menu to your heart's content without coding. Use Tools > Customize > Commands tab. Click the Toolbar radio button and select "Context Menus | Project and Solution Context Menus | Solution". You should see your too-long context menu. Move a favorite command in a better spot with the Move Up button. Use the Add New Menu button to add a sub-menu.

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.

Resources