Is it possible to create a work item from code editor? - visual-studio

We are working with TFS. Are there any plugins for Visual Studio 2012/2013 allow to create Work Items from code editor?
It's quiet annoying to get through several menus to create a work item.

You can customize the menu bar shortcuts for this so can have quick access directly from the IDE:
Right click the menu bar area in Visual Studio and check Work Item Tracking
Customize the menus and toolbars to add shortcuts to your favorite work item types.

Related

where is visual studio 2013 find search textbox in toolbar

It is so painful for me to "Ctrl+F" keys to open search or find text box in Visual Studio 2013. So how to I put this text box back to tool bar and click on it when I need?
If you look closely you will see a small folder with magnified class icon in the tool bar attached is the image.
Click on the dropdown menu next to it to the right and select what you want to add permanently to your toolbar menu.

Two extensions and one menu item

I want to use two VS extensions. Each extension creates its own menu item in VS2012 main menu. I would like to merge these menu items to one menu item. Is it possible to change vsix files to obtain this behavior or I should change the source code?
You can modify Visual Studio menu using Tools - Customize - Commands tab:

Visual Studio Property Window Search

As you know, some controls have many properties so it is difficult to find an specific property of a control in Properties window of Visual Studio. How can I search in Visual Studio Properties window?
Select the control that you are interested in, then open the properties dialog (right-click options, or press F4) you should see a box labelled 'Search Properties'.
See image.
If you like to show the search on property tap you have to install devexpress to your project and then add at least one tool from devexpress and then the "search" box will appear. I have tried it.

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.

How can i add an icon to a submenu in a VS2010 add-in?

I can add an icon to a menu item by adding an <icon> to the <button> element in the in the *.vsct file of my Visual Studio Package.
Unfortunately the <icon>issn't available available in a <menu> element.
How can i add an icon to a submenu?
It is possible to do this from code (preferibly C#)?
Maybe via injecting something into the COM / OLE layer?
TortoiseSVN has a icon in the explorer popup menu, have you ever seen a VS plugin that does this?
Unfortunately this isn't possible using VS menus (not with vsct, C#, etc), and they're not very extensible in this regard. However, depending on what you're trying to do, (e.g. if you're looking to do this in a context menu within a tool window rather than the VS menu bar), you may be able to use WPF context menus which should give you the control you need.
I am not sure TortoiseSVN explorer context menu and what you are trying to do in Visual Studio extension are same. As I understand, VSCT Menu element cannot have Icon. Only Button element supports icons. You can check this blog post from DiveDeeper for more information.

Resources