Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99078

Toggling the maximization of the current window (for any window type)

$
0
0

I want to define a single and universal keyboard binding that allows me to toggle the maximization of the current window, regardless of the type of window.

At a minimum, a window could be:

  • Any single editor group
  • The panel itself

By maximization, note that I mean in both height and width so that the window takes over the full application window with the exception of the side bar (i.e. if the side bar is already visible, it remains visible at all times).

By toggling I mean of course going back and forth between the original layout (i.e. remembering it), and the maximization result.


My thinking about this problem

There are several command IDs that I believe could help here but none of them seem to do what I want, e.g.

  • workbench.action.toggleEditorWidths
  • workbench.action.maximizeEditor
  • workbench.action.toggleMaximizePanel
  • workbench.action.toggleEditorVisibility

I suspect that

  1. there are more commands that could help here
  2. there is probably a way to accomplish this with the right boolean logic of when clauses and joint execution of command IDs (?)

 Dow


Viewing all articles
Browse latest Browse all 99078

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>