Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode: Shortcut key for (controlling) increasing/decreasing current split panes width/height?

Is there a quick keyboard shortcut to control the width of the current split pane , at least increasing and decreasing it ?

for vim users it would be :

:vertical resize 80 :res +5 :res -5 :vertical resize +5 :vertical resize -5

and so on...

like image 260
Ahmed Eid Avatar asked May 02 '17 16:05

Ahmed Eid


People also ask

What does Ctrl d do in VS Code?

Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.

How do you scale down VS Code?

In Visual Studio Code, by pressing Ctrl + and Ctrl - you can change the overall font size of the IDE. This helps faster than changing settings in every session.

What is the shortcut key to change the VS Code?

All keyboard shortcuts in VS Code can be customized via the keybindings. json file. To configure keyboard shortcuts through the JSON file, open Keyboard Shortcuts editor and select the Open Keyboard Shortcuts (JSON) button on the right of the editor title bar. This will open your keybindings.


2 Answers

There is no default shortcut for this but you can make your own.

The following works on vscode version 1.11.2 on Linux but it should be the same for Windows users:

Go to File > Preferences > Keyboard shortcuts

(or you can use the shortcut ctrl + k ctrl + s to open it)

Search for current view size and you can set your custom key combinations for decreasing and increasing the size of the current view.

like image 108
Tripurari Shankar Avatar answered Oct 21 '22 20:10

Tripurari Shankar


In split view, if you double click the current editor tab then it will increase to max, double click again and it will reset to 50%. Not a shortcut key but pretty nice nonetheless

like image 41
kuklei Avatar answered Oct 21 '22 21:10

kuklei