Shortcut to hide a Tool Window - visual-studio

We can close a Tool Window with Shift+Esc. What is the shortcut to hide a Tool Window? I have tried Ctrl+M, Ctrl+H to no avail.
For example, when the Locals window is open, I can close it with Shift+Esc but not hide it.

Closing a tool window preserves its state and actually works like hiding. Maybe you want to assign a shortcut to the Window.AutoHide command (also available in the main Window menu).

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

Is there a way, on macos, to associate vscode close window to a shortcut?

If I search for a "close window" feature in the command palette, I get this:
which is the main command one activates by clicking the os tick to close the whole window of vscode.
Activating this from the command palette is useful to close the main window if in full screen.
Is there a way to associate this command to a shortcut?
When I search for "close window" in the shortcut view I find:
where "shift+cmd+w" closes all internal windows of vscode and "cmd+w" closes them one by one (finally "cmd+q" just shuts down vscode entirely)
Apparently now it is possible to close one instance only of vscode, with the standard shift+cmd+w, to recap
on windows and linux
Simply just use alt+f4 to close your vscode window
on macos
Use shift+cmd+w
..or any other key combination you might associate with workbench.action.closeWindow

Enable the disabled underlying window

Sometimes in the Windows OS, a program is able to open a new window which disables it's underlying window. Closing the newly opened window of course re-enables the first window. I want to enable the underlying window without closing the newly opened window with Autohotkey.
I made a gif which shows the situation perfectly:
https://imgur.com/a/EWt8OrF
I thought I might be able to pull this off with window styles and window extended styles, so here's what I tried:
^!e::
MouseGetPos,,, WindowUnderMouse
WinSet, Style, -0x8000000, ahk_id WindowUnderMouse
return
But it didn't work. I also did a lot of googling on this, but I didn't know what would be the proper keywords so I didn't find anything. Any idea how to accomplish this?
Some keywords for google:
How to make a modal window modeless
How to enable a disabled window
How to make a palette window
How to make a modal window a palette window
How to enable parent window
Child window disabling parent window
https://autohotkey.com/board/topic/49376-making-a-gui-dialog-modal/
https://autohotkey.com/docs/commands/Gui.htm

Close the Solution Explorer window

What is the shortcut to close the Solution Explorer window? I know how to open it with CtrlAltL. How do we close it?
ShiftEsc is what I needed.
Press CtrlAltL to bring the Solution Explorer into focus.
Press ShiftEsc to close it.
Close Tool Window: ShiftEsc

Xcode 4 - detach the console/log window

Is it possible to detach the console/log window in Xcode 4?
Even better, how?
Go to Xcode preferences, and open the Behavior tab.
Tell Xcode to open a tab called "Debugger" when "Run Pauses" or "Run Starts". Then run it, and break that Debugging tab out into another window (drag it off the tab bar into its own window by just letting it drop outside the current window). Now reform it to your hearts content; it will stay that way. Also don't forget the little controls at the top right of the console window that slide the local variable display out of the way so you can have a full-width console on demand. I am not sure about keyboard shortcuts for that yet.
I usually keep the Debugging tab and one other tab in a separate window, for debugging tasks, and all my other editing tabs in a different window (and the debugging window on a separate monitor with the simulator). With the settings above it also means that, while editing a debugger reaching a breakpoint, it will not interrupt my editing by suddenly bringing forth the console.
Sure, create a new tab, drag it off the original window, and expand the debugger area to be the whole tab. Now, whether Xcode will remember that tab and its placement is another matter. File a bug with Apple to let them know your displeasure.
Taking jshier's advice a step further, you can do File -> New Window, and expand the debug window to take up the entire window. But you have to manually expand it every time you open it. Ugh.

Resources