Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I close Visual Studio's dockable windows with my keyboard?

It's kind of annoying to have to use my mouse to close the windows that appear when when summoned by my keyboard e.g. I find usages of an object by hitting Shift+F12, or any of the other dockable windows that appear for various other reasons.

Ideally these would close when I hit escape, but this does nothing. Alt+F4 wants to close the entire visual studio.

Is there any keyboard shortcut to close these windows?

To be clear, this is the kind of window I'm referring to: enter image description here

like image 254
DaveDev Avatar asked May 11 '12 09:05

DaveDev


People also ask

How do I close a Visual Studio tool window?

Because if it't just a window you're talking about, alt-f4 will close the current window.

What is the keyboard shortcut for running Visual Studio's debugger?

F5 - Run - This both starts the debugging session and continues the debugging session if the session is paused. F10 - Step Over - This runs just the next statement.

How do I close all windows in Vscode?

Tip of the Week 2022 (32 Part Series) Press CTRL ( CMD On a Mac) + K + W to close all your open tabs.

What does Ctrl t'do in Visual Studio?

Save this question. Show activity on this post. This brings up the class so you can click to view the class.


2 Answers

According to Default Keyboard Shortcuts in Visual Studio 2015, you can use the following:

  • Shift + Esc - Window.Close (window must have focus)
  • Ctrl + F4 - Window.CloseDocumentWindow to close the current tab
like image 76
inksmithy Avatar answered Oct 16 '22 00:10

inksmithy


It appears @inksmithy has answered the question, even though it doesn't work for me. I reckon it's because I'm using ReSharper and he isn't.

For what it's worth, I just discovered Ctrl + Shift + F4 works for me.

I've decided to mark @inksmithy's answer as correct but if that doesn't work for you try my one.

like image 24
DaveDev Avatar answered Oct 16 '22 01:10

DaveDev