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

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:

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

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.

Set Focus to docked window (e.g. [Ctrl]+[g] for immediate window)
Press context menu key (at the right side of the space key)
Press the key to hide that window, indicated by _ in the contextmenu
(depends on your language)

Related

How to close Vscode window without closing all tabs in macOS

I switch between many projects, all having triple panes and many tabs open. When I'm not working on a project I close the window using the GUI by the normal red close window button. When I open it again all my tabs are as I've left.
How do I do it with a keyboard shortcut? Cmd+W closes the current tab (which I don't want), Cmd+Q quits Vscode completely (which I don't want either), closing all windows. How do I close a single Vscode window with keyboard, identical to hitting the close button with mouse, so that when I reopen the window in the future all my tabs are intact?
Okay found the shortcut after searching with a better query on Google. It is:
Cmd + Shift + W

Find background shortcuts on windows

I'm having problem using one of the shortcuts in VS Code ctrl + shift + L but it works from selection menu.
I have noticed there is a loading circle above cursor when I press that shortcut (even in other apps) and I assumed maybe it's a different shortcut for windows which overrides it.
is there any app that would show me what is triggered when I use shortcuts in windows 10?
VS code developer shortcut troubleshooting doesn't recognize any shortcut but it does for ctrl + shift + S(workbench.action.files.saveAs) for example.
AMD Radeon software was interfering with the shortcut on the background.
disabled it on "hotkeys" section.
It didn't solve every shortcut malfunction, it resolved after I updated the graphic driver.

Shortcut in Notepad++ to switch between search box and main window (Windows 7)

Is any of you know if there is a systematic keyboard shortcut to switch back to the main window from the search box in Windows 7 (either from Notepad++ side, or Windows 7 side)?
Of course, you could do Alt+Tab but you might not end up directly on the right window (you might have to do "Alt+Tab" several times).
The idea to use Win+ to switch between windows does not work because the search box is not recognized as a dedicated window.
Thanks
Courtesy of Kard Nails:
Press Alt+Tab twice, releasing the Alt key between. When you go back
to Notepad++ with the second switch, the search dialog is no longer on
focus.
I'm using Windows 7 (Spanish Version) at the office, and all I've got to do to hit the search box is to press CTRL + B.

Close the current tab with a keyboard shortcut

I see that in Tools -> Options -> Keyboard you can set Keyboard shortcuts for a large number of tasks. I tried searching for "Close" and these are the results, amongst a few others:
File.Close
File.CloseAllButThis
File.CloseProject
File.CloseSolution
If I set File.Close to be Ctrl+W (Honestly, why doesn't Microsoft innately support such a universal shortcut is beyond me) it mostly works, however if I have both the code-behind and the Designer view open for a form, it closes both tabs. Should I be setting a different command, or am I stuck with this? It's a small inconvenience, but it really irritates me.
I don't know if it's the same in VS2010, but in VS2012 this command is called "Window.CloseDocumentWindow" and it is mapped to Ctrl+F4 by default, to mirror Alt+F4 for closing application-level windows.
I believe the Ctrl+W shortcut was first brought to Microsoft Windows by Adobe Photoshop, a carry-over from Apple OS X, where Adobe seems to have remapped all of the ⌘ command+* shortcuts to Ctrl+*. On OS X, ⌘ command+W only closes windows, but the application stays resident. One uses ⌘ command+Q to quit applications, instead. As the window is the application in Windows, Ctrl+W is kind of a misnomer, but it has gotten more popular for some applications like web browsers to support it.
Given the market dominance of MS Windows over Apple OS X for desktop operating systems, it would seem that the F4-style shortcuts are "more universal" than the W/Q ones.
Use CTRL+F4 to close current window, to close all window of visual studio and shut down use - ALT+F4 .
Go to Tools -> Options -> Keyboard Apply "visual studio code" additional keyboard mapping scheme

Regression? Visual Studio 2010 Unpinned Pane Will Not Hide With Escape Key If Mouse is Positioned Over the Pane

Maybe I'm a keyboard shortcut nut, but I like using CTRL-ALT-F to get my last search results. The window will slide up and I can quickly move to the next result. Or I can hit ESC and go back to what I was doing. That last bit is the rub. If the mouse cursor happens to be positioned over the pane when it slides up, it won't disappear with the ESC key. This was not the case in VS 2008. I wonder if some option in VS 2010 is causing the behavior???
As suggested by #Hans-Passant, I've submitted this as a bug at connect.microsoft.com:
https://connect.microsoft.com/VisualStudio/feedback/details/699294/visual-studio-2010-unpinned-pane-will-not-hide-with-escape-key-if-mouse-is-positioned-over-the-pane#details

Resources