Is it possible to make a full-screen editor in VSCode?
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.
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.
I use this on OSX, hope it will be helpful. Just replace command code with codef.
#!bin/sh
codef() {
code $* && sleep 0.5 && /usr/bin/osascript -e \
'tell application "Visual Studio Code"
activate
tell application "System Events"
keystroke "f" using {control down, command down}
end tell
end tell'
}