Visual Studio 2010 tab close button - visual-studio

I'm used to having the 'x' close button that closes each tab you have open positioned on the right, the way it is in VS 2008. In 2010, each tab has it's own 'x' close. I like this but would also like to have the old close button too. Anyway of doing this?

There's an extension that will let you do this: Productivity Power Tools. After installing, if you go to Tools->Options...->Productivity Power Tools->General you can check the "Show close button at end of well" box. If you want the close button in both places, also check the "Show close button" box.
Screenshot:

Related

Visual Studio 2015 Community not responding to mouse clicks

I have installed Visual Studio recently but I can't use it. The program opens but I can't click on anything. It looks like the whole window is inactive (gray icon and text in top left corner). I have tried to reinstall it, however, that doesn't work. And if I click on the window, a sound appears (but it's not the error one, probably a warning one). Any suggestions?
edit: I have to close it through task manager. I can't even close it by clicking on the VS 2015 icon at Windows bar and selecting "close program" item in menu
edit2: If I click on the VS2015 window and then type on my keyboard, the weird "dong" sound appears. Same if I just click on the window. However, sometimes I can navigate using keyboard and therefore open window for starting new project. In this window I can use mouse absolutely normally, however, if I click on the OK button, the window quickly close and reopen again. It won't create a new project. So I'm still stuck on the welcome screen.
edit3: Another interesting thing I found. Now when I click on the OK button this error message appears. Should I reinstall it again (for 3rd time), and hope that this time it will be installed right?
PS: I'm sorry for my English - I'm not a native speaker
I had the same problem, it can't be solved by re-install VS2015. It was solved after I TRULY uninstall VS2015 by the tool: https://github.com/Microsoft/VisualStudioUninstaller/releases

Visual Studio 2013 - Tab close behavior

I've been using Visual Studio 2013 Community Edition for several months now and have one small problem. When I close a tab with middle click, it closes on button press down, not on button press up.
If this doesn't make sense, what I can use as an example is the tab close behavior in Firefox. When you hold middle click over a tab, it doesn't close the tab immediately, it only closes when you release that button.
Is there any way to replicate this behavior in Visual Studio 2013? I frequently close the wrong tab, but happen to hold middle click when I do it, so this change would help me a bit.
I don't see a way of doing this in Visual Studio but you could try using Mouse and Keyboard Center 2.0 (a free download from Microsoft).
According to Tech Republic (emphasis mine):
Although this basic functionality is helpful, the utility's best feature is that it allows for application specific button assignments. As such, the right mouse button could be assigned one function in File Explorer and a different function in Microsoft Office.

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.

Tweak Visual Studio open file Tabs

In VS2008, specifically:
Is it possible to add "close all" as well as "close all but this"?
Can we add a close button to each tab, like in FF, rather than having to right-click?
Is it possible to add "close all" as well as "close all but this"?
That's spelled "Window/Windows", Ctrl+A, "Close Window(s)"
Can we add a close button to each tab, like in FF, rather than having to right-click?
I don't think there's anything built in for this, and I doubt that any plugin could tweak the UI that much. You might make a feature request, though.
PowerCommands for Visual Studio 2008 add Close All to tab context menu. Tabs Studio add-in (developed by me) add a close button to each tab.

How to maximize Visual Studio panels?

Is there a way to quickly maximize (and then restore) Visual Studio 2010 panels? For instance, I'd like to temporarily maximize the Output window or unit test results window. In Eclipse, I would just double-click the window tab, but in VS, this undocks the window.
The desired behavior is: double-click to maximize the window, then double-click it again to restore the panel to its original position.
Use this keyboard shortcut: Shift-Alt-Enter
It will maximize your current panel similar to Eclipse, but it will use the full screen unfortunately, not just the whole Visual Studio window. I prefer the way Eclipse does it, but this does help in Visual Studio land.
This feature has been added to Visual Studio Productivity Power Tools 2013 ("Double click to maximize windows"), which is free to download.
This new feature allows double-clicking any window tab to maximize it to full-screen mode and restore it back to its initial docked state - without having to worry about float operations or changes to your window layout.
In Visual Studio 2010, you can double-click the title bar of a given panel to put it into float mode, then use it just like any other window (maximize, Windows 7 dock, etc.). Ctrl-double-clicking it again will turn it back into a docked panel.
You can also right-click on the title bar and select Dock as Tabbed Document to display the panel in the same way the code windows are displayed.
In Visual Studio 2017, on a focused tab
Alt + -, F
Alt + Space, X (see UPDATE)
UPDATE (Windows 10)
Win + Up
From the View menu, pick Full Screen menuitem.
Note: when you select the View menu, you will notice that the shortcut for selecting Full Screen is mentioned, Shift+Alt+Enter (which was mentioned previously in the Answers).
Platform: Visual Studio Professional 2017, Version 15.5.7 on Windows 10, 64-bit
Closest the Eclipse behavior is to follow these steps:
Right-click the window title bar, select Float
Double-click the window title to maximize
Right-click the window title, select Dock
After these steps, double-clicking and Ctrl+double-clicking the window maximizes / restores itself
Here it is as a key board shortcut for commando types:
Ctrl+Tab Switch to your desired window/panel.
Alt+- Show the dock menu.
T Choose 'Dock as tabbed document'
Right click title bar, then choose 'float', it will only get that window, not the whole panel. Then double-click to maximize.
Also, the commands are
Window.Float
Window.Dock
and you can assign them keyboard shortcuts under tools\options. So for example I mapped them to Ctrl-Shift-F7 and Ctrl-Shift-F8, and then after once maximizing the Output window, henceforth if I have the output window docked, I just focus it and then a key makes it big and other puts it back, hurray.
If you have already installed Productivity Power Tools 2017 (PPT), and the double click file tab is not working or any other feature in PPT, just reset the PPT and it should work just fine after restarting visual studio 2017.

Resources