Visual Studio 2010 Find Menu Steals Focus - Can't Wheel Scroll - visual-studio-2010

In Visual Studio 2010, if you press ctrl+f, the find menu will have focus and you will not be able to use the mouse scroll wheel to scroll in the main window. Is there a way to adjust this to allow scrolling?
In Visual Studio 2008 if you press ctrl+f, the find menu will have focus but you can still scroll in the main window. This is the behavior I want in 2k10.

As far as I can find there is no setting in VS that allows that. What I've done is added the Productivity Power Tools extension
http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef/ .
Its find extension takes over for ctrl+f and allows me to scroll the text editor window even when the focus is on the find dialog.

Related

Keyboard shortcut for selecting text editor in Visual Studio 2017

I find myself having to reach for my mouse a lot to re-select my code after running it.
You can use ctrl+tab
This brings up all current tabs, but just tapping it will bring you to your most recent tab and cursor position.

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.

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 do you reset the Zoom in Visual Studio 2010 and above

How do you reset the "Zoom" in VS 2010 and above back to normal?
CTRL+SCROLL WHEEL lets you zoom in/out with Visual Studio 2010/2012/2013/2015/2017, but I'd like to get back to the initial 100%.
There is a select box for this at the bottom left of the editor window - choose 100% ;)
I was unable to find a keyboard shortcut for it, though zooming in and out can be done using Ctrl + > and Ctrl + <.
Please note the horizontal scroll bar must be turned on to see the zoom level.
Tools / Options / Text Editor / All Languages / Scroll Bars
Another option (Visual Studio 2013/2015) is to use Ctrl with the mouse wheel (up to zoom in, down to zoom out).
There's a zoom control in the bottom-left of the code editor. You can pick 100% from there, or type it by hand.
In Visual Studio 2015/2017/2019 (easy to miss if using a dark theme):
You can try VSCommands extension from Visual Studio Gallery, it adds several new features around zooming in VS2010
Visual Studio 2017 has an extension "Reset Zoom" by Mads Kristensen and it adds a keyboard shortcut (Ctrl+0, Ctrl+0).
https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ResetZoom
By default, the keyboard shortcut is Ctrl+0,Ctrl+0 but can be changed to be whatever you like.
I also have R# and the default shortcut did not show up for me but manually applying it worked.
Go to Tools -> Options -> Environment -> Keyboard and look for the command View.ZoomReset to change the keyboard shortcut.
In Visual Studio Ultimate 2013, at bottom-left from screen:
If you are using latest version you can also resize the content in visual studio by selecting
ctrl+ will zoom in and ctrl- will zoom out.
to do manually goto
preference->settings
and UserSetting file will be opened in the editor change.For default zoom
window.zoomlevel:0
and to zoom in
window.zoomlevel:1,2,3......

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