Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Split window space equally in vscode

Is there a shortcut, hotkey, or any other way of centering the scrollbars which split the windows in vscode? Ideally I'd like to be able quickly recenter the windows, and ensure each has the same amount of space, but I dont see a way to do this inside any of the commands.

like image 458
We Stan Test Coverage Avatar asked Feb 08 '23 16:02

We Stan Test Coverage


1 Answers

This can be done using the workbench.action.evenEditorWidths action, you can either look it up in the command palette:

  • ctrl+shift+p
  • Type reset editor group sizes
  • enter

Or define a keybinding in your keyboard shortcuts file:

{ "key": "ctrl+shift+a",    "command": "workbench.action.evenEditorWidths",
                            "when": "editorTextFocus" },
like image 75
Daniel Imms Avatar answered Mar 05 '23 16:03

Daniel Imms