6

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

DaveDev
  • 41,155
  • 72
  • 223
  • 385

3 Answers3

8

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
KyleMit
  • 30,350
  • 66
  • 462
  • 664
inksmithy
  • 536
  • 1
  • 5
  • 16
  • Hi, thanks for the response, but these don't seem to do it. I've updated my question with an image of the window I'm referring to for clarity. Thanks – DaveDev May 11 '12 at 09:53
  • Hi, I just opened up a Find Results window, undocked it from where I usually leave it, gave it focus then hit SHIFT-ESCAPE and it folded away nicely. Understand "worksforme" isn't really a useful response though sorry. – inksmithy May 11 '12 at 09:58
  • Thanks for clarifying. In this context "worksforme" is indeed a useful response because I know that it *should* work for me. Now I just need to track down why and then how to resolve. Do you use ReSharper by any chance? I do and it might be interfereing with my keyboard shortcuts. – DaveDev May 11 '12 at 10:03
  • I don't use ReSharper at all, no - I keep trying but the boss won't spring for it! Might be worth remapping the shortcut though, if ReSharper may have messed with it. – inksmithy May 11 '12 at 10:06
2

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.

DaveDev
  • 41,155
  • 72
  • 223
  • 385
0
  1. Set Focus to docked window (e.g. [Ctrl]+[g] for immediate window)
  2. Press context menu key (at the right side of the space key)
  3. Press the key to hide that window, indicated by _ in the contextmenu (depends on your language)
Res
  • 1
  • 1