How to close Vscode window without closing all tabs in macOS - 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

Related

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

Keyboard shortcut to close all tabs without closing Firefox

Is there a keyboard shortcut to close all open tabs without closing Firefox?
In fact, I want Firefox not to close when all tabs are closed. There may be a new blank tab after all tabs are closed.
Follow the instructions in this post to configure FireFox to not close the window when the last tab is closed:
(Don’t) Close Firefox with Last Tab
If you hold CTRL + W all tabs will close very quickly, when the last one is closed, you will get the default tab that is there when you open FireFox.

Shortcut to hide a Tool Window

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).

Restarting firefox using the developer console (shift+F2) makes every restarted window have the developer console open

When I restart firefox using the developer console, i press shift+F2 and then I write
restart
in the command line that comes up at the bottom and press ENTER.
This is of course a very useful feature, every window dissapears and comes back, but each restarted window will also have the developer console opened as if I was pressing shift+F2 on everyone of them.
Why?
The Developer Toolbar is a global thing, just like any other toolbar (e.g. Nav Bar or Bookmarks Bar). Firefox will remember the visiblity state and will restore it when opening new windows, either the usual way, or after a restart.
Just close the toolbar in one window, and it will be closed in every other window as well.

Browser Window Size during Visual Studio Debugging

How can I force the window that opens when I run a website from Visual Studio to be maximized? Everytime I run my site VS automatically resizes the window to something that seems arbitrary.
After your browser window has been opened once (as not maximized) press the maximize button. Then HOLD ctrl key and press the close button ('X'). Then you may release the ctrl key.
Next time your window will be open as maximized (holding ctrl key while pressing close forces windows to remember the window's last state)
Go into the project settings - Web - Start Action, and set it to be "External program" with start.exe and command line arguments of
/MAX http://localhost:12345/myproject/default.aspx (or whatever)
This will open default.aspx in a maximized window, but only if you don't have any other IE windows open - if you do (and you have IE7) - you'll just get a tab in one of those windows instead.
This will probably keep your debugger from attaching to the iexplore process and may indeed return immediately because start.exe only runs for a second. You may have to manually attach to the iexplore.exe process.
But it doesn't involve a bunch of window-manipulating JavaScript.

Resources