Menu Items added to Visual Studio are disabled - visual-studio

I was following the instructions at https://tortoisesvn.net/visualstudio.html to integrate some common SVN commands to my visual studio IDE. Here are the steps I followed
Selected Tools | External Tools and added commands for SVN Log, Blame and Diff.
These commands show up in the Tools Menu and are working as expected
Next, selected Tools | Customize | Commands | Context Menu. Under the Context Menu drop down, chose the Editor Context Menus | Code Window
Using Add Command, added the 3 commands. These options now show up in the code window context menu but are disabled.
I am not sure what additional steps need to be performed to get these menu items to show up enabled. I had this working till recently but lost it when I reset my settings. Appreciate any help in this regard
Screenshots

Related

Can I add a button from the Ankh SVN toolbar to my toolbar in Visual Studio?

I've created a custom toolbar in Visual Studio to run my external tool that builds the solution and performs a commit using TortoiseSVN. After that, the Ankh SVN status in the project explorer is outdated since Ankh still does not feature any auto-refresh. I could also show Ankh's own toolbar, but I only need the refresh button of it. So I thought I'd just add that button to my toolbar to keep it clean.
After lots of searching I found Ankh's commands in the customize dialog in the "File" category. But the commands are alwys disabled in my toolbar, even though they're enabled in the standard context menus. What's wrong with these buttons?
Alternative: Are there better (free) Subversion extensions for VS 2010 that can auto-refresh on local status changes outside of VS?
The AnkhSVN commands are context sensitive. In some cases there are 3 or 4 different versions of commands that would be used in different places in context menus depending on the state (Show History is an example that has different versions). If you pick the right version of a command it should work just fine in a toolbar.
You probably want the refresh from the pending changes window as that is +- stateless. (See also the 'Source Control-Subversion' toolbar)

Add-in Manager ignores my unchecking/deselecting

Every time I start up Visual Studio, I get nag screens from JustCode and JustTrace. Even after going to Tools | Add-in Manager and deselecting both of them (the only two items in the list), the nag screens still display! I return to Tools | Add-in Manager and see that they are again selected - even the Startup checkbox, and the startup checkbox for JustCode doesn't even allow me to deselect it.
I don't know if this is a Visual Studio problem or a Telerik problem, but it is an irritant - how can I oust the miscreants once and for all?
For JustTrace you do not have a direct option to stop checking for updates. But you can make it appear less by un-checking "Include Internal Builds when checking for updates" check-box in the auto-update dialog and press Postpone. This will make JustTrace prompt only for the major releases and service packs, which are few.
Would you be more concrete and specify which dialogs you find annoying? Probably a screenshot would be helpful.
So far, I think that the Update dialogs are poping up at the start and if I am right you can disable them.
For JustCode you will find an options in JustCode menu > Options > General > Updates. Go there and disable Automatically check for updates setting.
Did some digging and found this for you: http://devcomponents.com/blog/?p=653
Granted it's not the same component, but the behavior is normally universal regarding addons.
Run VS as an administrator by right clicking the VS icon and selecting "Run as Administrator". This will allow the check boxes to be unchecked and have your preferences saved.

Debug->Exceptions option missing in VS2010

I want my code to break on exceptions and so usually in VS2010 I go to the dialog Debug->Exceptions... to enable this.
But on a new install of VS2010 Professional that option in the Debug menu is completely missing. Has anyone seen this before?
From here:
http://msdn.microsoft.com/en-us/library/d14azbfh.aspx#addexceptionscommand
Do this:
To add the Exceptions command to the Debug menu
On the Tools menu, click Customize.
The Customize dialog box appears.
Click the Commands tab and, in the Menu bar list, click Debug.
Click Add Command.
In Categories in the Add Command dialog box, click Debug.
In Commands, click Exceptions and then click OK.
(Optional) You can click Move Down to adjust the position of the Exceptions command on the Debug menu.
Click Close.
Visual studio can be used with various languages and environments. Therefore, the basic IDE have different settings for each purpose (this is somewhat like Eclipse perspectives). Using a certain language profile does not mean VS cannot be used to develop another language, but some of the IDE's functionality might not be available. To solve this issue, the IDE's profile can be modified as described here.

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)

Solution Explorer Context Menu Too Long

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.

Resources