Switch between text editor and other windows - visual-studio-2013

Does Visual Studio 2013 support keyboard shortcuts for switching between windows? f.e. the text editor and "find results" window? I tried F6 but it does not work.

With help by Mark's comment, pressing Ctrl + Tab, then use arrow keys (right and left) to switch between tools and files.

Of course you can. Press Alt + F7 to move through Active tool windows. To return back to text editor use Ctrl + Tab.

Related

Visual studio hotkey to go between different windows

Is there a hotkey to switch between different windows? I know about Ctrl + Tab, which can be used to switch between active tabs, but I would like a way to switch between various windows created by visual studio.
I think you are looking for Alt + Shift + F7
https://msdn.microsoft.com/en-us/library/a96fx0b9.aspx
See the section: Navigating Among Tool Windows in the IDE
As a supplement to the above answer, you will find that "Navigate among files" and "Navigate among tool windows" have the same name: "Window.PreviousDocumentWindowNav"
I found that the way to switch is to press the left and right arrow keys when pressing "Ctrl+tab" to switch.

What is the Menu Bar keyboard shortcut in Visual Studio?

I am using Visual Studio 2015 and I'm trying to learn keyboard shortcuts. I cannot find a shortcut that changes focus to the menu bar. Does it exist? Similar to Ctrl + Alt + L to change to the solution explorer.
I am aware of Ctrl + Tab, but I want to be able to access the whole menu bar without having to reach for my mouse.
I just figured it out myself. It is Alt + first letter of the tab.
So to access the File tab. Alt + F
Or Project tab. Alt + P

How to change "Navigate backward" in Visual Studio 2013?

Default shortcut (Ctrl + .) is not working, I would like to change it to Mouse Button 4/5.
How can I achieve that ?
The shortcut for navigating backward is Ctrl + -. Have you tried that?
You can also refer to Customizing a keyboard shortcut

What's the equivalent for eclipse's ALT+UP/DOWN (move line) in Visual Studio?

In Eclipse, selecting a line and pressing Alt + ↑/↓ will move the line up and down, a quick way to avoid copy&paste.
Is there an equivalent in Visual Studio?
In Visual Studio 2013 and later, this functionality is built in. ALT + UP/DOWN will move a line up or down.
If you need this functionality in VS2012 (works with VS2010 too), take a look at the MoveLine Visual Studio Extension or the Productivity Power Tools suite.
ReSharper's Ctrl + Shift + Alt + ↑/↓/←/→ is even more powerful - when on the beginning of the line, it will move the entire line, but can also be used to move entire methods, change the order of parameters, etc.
For me in Visual Studio 2019 it comes default closed.
For open it:
Tools -> Options -> Keyboard then select Edit.MoveSelectedLinesUp, click "Press shortcut keys" input and press Alt + Up (or whatever you want for it). And the other one is Edit.MoveSelectedLinesDown, click "Press shortcut keys" input and press Alt + Down (or whatever you want for it).
This is now working out of the box with Visual Studio 2013, same way as in Eclipse.
For Visual Studio 2013:
Tools -> Options -> Keyboard then select Edit.MoveSelectedLinesDown, click "Press shortcut keys" input and press Alt + Down. You also have to select the scope of the shortcut to be within "Text Editor".
In Visual Studio 2013 and later, you can move lines up and down using Alt + ↑ / Alt + ↓. Unfortunately this will not adjust the indentation if you move between blocks, as of today only ReSharper (and all other IDE's by Jetbrains including Rider) can help you with that.
To move entire blocks of code around you can move the cursor to its head and press Ctrl + m twice fast to collapse it, and then use the command above to move it around.
Here is a neat reference to all default keyboard shortcuts in different versions of Visual Studio.
With the VSCommands extension, you have exactly that keyboard shortcut. And, by the way, a Stack OVerflow notification toolbar :)

Visual studio or resharper shortcut to close currently selected file in IDE

Is there a shortcut in VS 2005 or resharper to close the current file. or "save and close" would be even better
Ctrl + F4
Save and close would
Ctrl + S followed with Ctrl + F4
Visual Studio 2015 + Resharper
The question is a bit old. Just wanted to update it with the current solution.
As you can see below, you can also completely customize your shortcuts:
just navigate to Tools > Options
on the left pane, go to Environment > Keyboard
now use the field Show commands containing to search for file.close
select File.Close on the list
click the field Press shortcuts keys
type your desired shortcut, for example, <Ctrl> + W
finally, click Assign
And you're good to go!
Ctrl+S, Ctrl+F4 will save and close the current file.
Tools -> Options -> Keyboard
Find "Windos.CloseDocumentWindow"
And for me, need to set "Use new shortcut in" to "text editor" to override old ctrl+w without delete

Resources