문제

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

도움이 되었습니까?

해결책

Just had a quick look, seems SHIFT-ESCAPE seems to be the shortcut you need.

The window itself must have focus.

Alternatively, CTRL-F4 will close the current tab.
Source.

다른 팁

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.

  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)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top