How to add "Pending Changes" button to toolbar in VS 2010 - visual-studio-2010

I would like to be able to access the "Pending Changes" button directly from the toolbar in Visual Studio 2010 without having to click down a submenu.
I know how to add buttons to the toolbars, but I cannot seem to find the "Pending Changes" button in the Customize Window.
I found something called "Pending Checkins" but that seems to be something different.
Thanks.

Found it. It's under View --> tfsPendingChanges.
You can also find tfsSourceControlExplorer and tfsHistory.
So I made a new toolbar for just those items.

Related

"Select Startup Item" command / drop-down not showing on Standard toolbar in Visual Studio

Up until recently I could select the startup project (equivalent to right-clicking on the project in the solution explorer and choosing "Set as Startup Project") from the Standard toolbar with the "Select Startup Item" drop-down. Now it's gone, yet the item is still checked under "Add or Remove Buttons".
The closest reference I could find is this, but the solution doesn't match my situation because I have more than one project and this is happening no matter which solution is loaded.
Please help me figure out what is going on.
I had a similar issue where the start menu item (called "Debug Target") was completely gone. Toggling the menu item on and off did not resolve the issue. I selected "Reset Toolbar" at the bottom of the menu and that resolved the problem for me. May require some manual set up after if your menu is heavily customized. But if you use the Standard layout it shouldn't be an issue.
I had the same problem. The "Startup Projects" drop-down disappeared occasionally. It was probably caused by installing/uninstallin/updating VS extensions.
The solution was easy. Install free extension Clear MEF Component Cache. Then simply click the Clear MEF Component Cache in the Tools menu. The toolbar should be repaired after restating Visual Studio.
This solution does NOT reset any of your UI customizations.
Open the "Add or Remove Buttons" dropdown in the section with the "Start" button, deselect "Startup Projects" and close all Visual Studio windows. Open a new instance of Visual Studio and re-enable "Startup Projects." It should show up for you then.

VS -TFS bug_ Not show dropdown menu "View history" of solution in Solution Explorer

Can someone help me with that bug in Visual studio with Team Foundation Server?
The dropdown menu "View history" didn't show in "Solution Explorer" (image below).
But sometimes, when I click at "Check in" to solution (then may either cancel or check in), then comeback to dropdown menu, it magically appear (sadly sometime it not).
So almost everytime, I must go to "Team Explorer" and navigate to "Source control Explorer" to View history of my solution. These actions take time, and make me frustrated too.
Thank you for any help, or alternative method!
P/S: I met it in all VS2013 and VS2015.
Image when menu is disappear (almost everytime):
And appear after checking in all solution (rarely):
I couldn't see this issue with my TFS 2015.3 + VS 2015.3. You would have to check history in Source Control Explorer, or use History Command to display the history: https://msdn.microsoft.com/en-us/library/yxtbh4yh(v=vs.100).aspx.
If possible, I'd like to suggest you upgrade your TFS, I couldn't see this issue in both TFS 2013 and TFS 2015.

Visual Studio 2012 "Show All Files" button missing

In my solution I have three projects: Console application, class library, and a website project.
The Show All Files button is visible on the console and class library project, but soon as I click on the website project the button disappears.
I am running Visual Studio 2012.
I just got the same problem "Solution Explorer toolbar missing" eg. "Show all files". Here's what I did:
Right click your "Solution".
Select "New Solution Explorer View". This will pop-up a new "Solution Explorer" window with toolbars in it.
Close you original "Solution Explorer" window.
Click on folder which must contain target file and Solution explorer properties will be changed. There you can find Refresh button and Show all files button.
Check this post:
Improved Solution Explorer in Visual Studio 2012 to Improve Productivity
"Show All Files" is not shown in a Web Site Project because it's not needed and all files are already shown in the Solution Explorer. I think that this behavior is the same for older versions of VS
In Solution Explorer, click on a project, and then the 'Show All Files' button will appear.
If you are in a WebSite project all files are shown by default. If there are some missing (added during debugging etc), just hit the refresh button on the top of the solution explorer and they should appear.
None of the above answers worked for me. If this is the case for you try right-clicking on any file in your project, then choosing "Show all files". The "Show all files" icon should now appear on this and all subsequent Solution Explorer windows.
YMMV, be kind. :-)
The "Show All Files" auto hides.
Click on the folder that has the hidden file, the button should show up.
By clicking on the project (the folder under the solution) the solution explore checks if all sub folders has hidden file, this will prompt the button to be revealed.
If you want to get Show all file menu just hide the solution explorer and open it fom view=>Other Windows=>Solution Explorer and clik it it will show all files menu
if you click on solution name in "solution explorer" maybe you will can't see "Show all files" button. because maybe added F# or website project in solution.
if you want see "Show all files" button, you must click on project name which is C# or native C++ or C++.net.
try to open any file use ctrl+alt+a . once a file will open "show all" button will appear automatically.

Split button in a tool window toolbar

i'm writing a visual studio 2010 extension and got a ToolWindow with a ToolWindowToolbar.
in my toolbar i want to add a split button that while pressing the button (left part) will show the 'open file' dialog, and when pressing the arrow (right part) will show a list of recently opened files.
i have tried several ways to no avail, can you help?
This thread from MSDN Visual Studio Extensibility Forum might help you.
"Bitmap icon does not appear on a SplitDropDown button in Visual Studio toolbar"
see solution in this discussion

How to recover control deleted from ToolBox In Visual Studio?

I've deleted a tool from ToolBox by accident. How I can get it back if possible?
The standard way is to select the tab in the toolbox and select "Choose Items", this opens a window that allows you a list of controls to add, or you can browse to find the control in it's assembly if it is not there.
You can also restore the toolbox to the original configuration with a Right Click on the Toolbox and select "Reset Toolbox" (WARNING: This will give you the VS defaults. If you loaded any control libraries, you will lose them and have to reload them with their installer or "Choose Items").
Just right click any tool and select reset toolbox....you will get the deleted tool.
Disclaimer: This is based on memory.
Right click on Toolbox, you should get properties/configure or Add Control option. Select that option and a dialog box will appear listing all types (.net, COM) of control. Select the control that has gone missing and it should be back to your toolbox.
If reset toolbox does not help please try the following:
- right click on the blank toolbox area and select the option "Add/remove Items";
- click on the browse button;
- if 'Windows Forms' controls are missing navigate to:
C:\WINDOWS\Microsoft.NET\Framework\vx.xxxx\System.Windows.Forms.dll
- if 'Web' controls are missing navigate to:
C:\WINDOWS\Microsoft.NET\Framework\vx.xxxx\System.Web.dll
- and press OK.
The controls should then appear on the relevant tabs.
For Visual Studios or other visual stuff, to reset the toolbox and other tools click windows then go to reset windows layout.

Resources