I'd like to have the ability to make one of multiple split
editor windows full screen.
I usually have two vertically splitted windows with code and it would be useful to make sort of full-screen-zoom without explorer terminal and all other bars, just code.
Initally I have the following:
but I would like to configure a shortcut to make an active window full-screen like this:
It is like F11, closing the explorer, and merging the split. It is messy to do it by hand all the time...
Ctrl+\ to split the active editor into two. Open to the Side (Ctrl+Enter) from the Explorer context menu on a file. Click the Split Editor button in the upper right of an editor. Drag and drop a file to any side of the editor region.
From the Window menu, select Remove Split.
Yes. You can toggle splitting orientation with: Ctrl + Shift + P (Command Palette) Toggle Vertical/Horizontal Editor Layout.
I would like to configure a shortcut to make an active window full-screen.
You need to edit keybindings. Press Ctrl+K
and then Ctrl+S
to open keyboard shortcuts.
If you're on a mac, use
Command
key instead ofCtrl
.
Search full screen
in search bar. You will see something like this:
Click on the result. Press Ctrl+K
and Ctrl+K
(again!) or click pencil icon to edit the shortcut. Press desired key combination. That's it.
And here are some more shortcuts to learn:
Press Ctrl+K
and then Z
to open editor in full screen without explorer and terminal, etc. And you can use Ctrl+B
to show/hide side bar and Ctrl+J
to show terminal and console panel.
Download keyboard shortcuts file here for your favourite OS.
To make these hotkeys work in vim-mode:
Actually VSCodeVim
will take over your control keys. This behaviour can be adjusted with the useCtrlKeys
and handleKeys settings. Go to File>>Preferences>>Keyboard Shortcuts
. Search for Ctrl+k
in search bar. You will see extension.vim_ctrl+k
as below:
Change this hotkey. Now it should work.
The closest you can get to maximize ONE EDITOR GROUP out of two open editor groups, (capitalizing because nobody read the actual question properly!)
is to set this command as a shortcut:
View: Toggle Editor Group Sizes
workbench.action.toggleEditorWidths
which will toggle the active editor group to 90% of the screen
If you have the side bar open that will take up another 10%, to close that automatically use:
View: maximize Editor Group and Hide Sidebar
workbench.action.maximizeEditor
(this command doesn't toggle so you still need the previous shortcut) (and also now your sidebar is closed when you toggle back)
To achieve maximum fullscreen vibe, use Ctrl-k z
to enter zen mode, the sidebar, terminal, menus and clutter disappear,
leaving just the editor groups, which you can toggle their size with the previously mentioned shortcut.
Don't get lost in zen mode! It happens, remember the shortcut Ctrl-k z
Not ideal, I think we'd all prefer to have dedicated toggles for zen-moding the active group editor or file 100%, but it's close enough for now.
Here's a screenshot of it in action:
VS Code Editor Full Screen Without Explorer and Terminal - Press Ctrl + K then Z (Zen Mode)
To exit from the full screen mode, press Esc two times.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With