Keyboard shortcut for selecting text editor in Visual Studio 2017 - visual-studio

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.

Related

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.

Visual Studio (2010) Mouse wheel sometimes zooms instead of scrolls

I don't know what happens, but every once in a while, when I want to scroll down with the mouse wheel, the IDE zooms instead of scrolls. Other than closing and re-opening Visual Studio, how can I switch back the functionality to make scroll instead of zoom. (I'm NOT holding down the CNTL key.)
Try pressing Ctrl Shift - it works in VS 2015.

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

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.

Visual Studio shortcut for "quick fix"

Does Visual Studio 2010 have a shortcut for quick fix?
I'm tired of grabbing the mouse, hovering over this red line, waiting for the little clipboard icon to appear, clicking on the first menu item. It would be so much fast to just open that dialog with some keys and confirming the first (i.e. selected) item.
The feature is called the "Smart Tag".
Default Keyboard Shortcut Schemes (ReSharper documentation)
Stack Overflow question How does one set Visual Studio 2010 keyboard shortcuts comfortably, especially when using ReSharper?
Stack Overflow question Visual Studio keyboard shortcut to automatically add the needed 'using' statement
They can usually be invoked via the keyboard using either:
Ctrl+. (on a standard QWERTY keyboard)
Alt+Shift+F10 (if you've not got Function Lock enabled)
If your cursor is on the item that is underlined, you can use Ctrl + . to pop up the intellisence/suggestion context menu.
Alt + Shift + F10 does the trick.
Via #Rohit from Visual Studio keyboard shortcut to automatically add the needed using statement
If you want to edit the shortcut of quick fix you can do the following:
Open Tools->Options->Keyboard and in the Show commands containing field enter EditorContextMenus.CodeWindow.QuickActionsForPosition and replace the old shortcut with the new one.

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