When Visual Studio Code fills your entire display, it can be hard to tell whether you turned on full-screen mode, entered Zen Mode, or simply hid a panel. Fortunately, you can usually restore the normal window with a keyboard shortcut or a command in the View menu. The exact steps depend on your operating system and on which display mode is active.
This guide explains how to close VS Code full screen on Windows, macOS, and Linux. It also covers Zen Mode, hidden toolbars and panels, and what to try if the usual shortcuts do not work.
How to Exit Full-Screen Mode in VS Code
The quickest way to leave VS Code’s full-screen mode is to toggle it off with the same command that turned it on. In most installations, you can use a keyboard shortcut or choose the command from the View menu.
-
Windows: Press
F11. -
Linux: Press
F11. -
macOS: Press
Control+Command+F. - Any operating system: Open View > Appearance > Toggle Full Screen.
After you use the shortcut, VS Code should return to a regular window, with the desktop or other open applications visible around it. If nothing changes, the keyboard shortcut may have been intercepted by your operating system, modified in your VS Code settings, or confused with a different display mode. Use the View menu to check the mode directly.
Exit Full Screen from the View Menu
The menu is a dependable option if you do not remember the shortcut or your keyboard does not have a dedicated function key. In VS Code, open View, point to Appearance, and select Toggle Full Screen. The command switches between full-screen and windowed display, so selecting it while full screen is active should restore the window.
Depending on your VS Code version or window layout, the menu labels may appear slightly differently. Look for the full-screen command under View or its Appearance submenu. You can also use the Command Palette: open it with Ctrl + Shift + P on Windows and Linux, or Command + Shift + P on macOS, then search for Toggle Full Screen.
Close Full Screen on Windows
On Windows, press F11 to toggle VS Code’s full-screen mode off. If your keyboard uses function keys for media controls, you may need to hold Fn as well, making the shortcut Fn + F11. The exact behavior depends on your keyboard and its function-key settings.
You can also use View > Appearance > Toggle Full Screen. If VS Code is maximized but still shows the Windows taskbar or title bar, it may simply be maximized rather than in full-screen mode. Click the window’s Restore Down button near the top-right corner, or double-click the title bar, to return it to a smaller window.
When you cannot see the title bar, press Alt + F10 or use the View menu to check the display mode. Be aware that keyboard behavior can vary by Windows version and keyboard configuration. The VS Code menu or Command Palette is the best fallback when a shortcut does not respond.
Close Full Screen on macOS
On a Mac, try Control + Command + F to toggle full screen. You can also move the pointer to the top of the screen to reveal the macOS menu bar and window controls. Click the green window button to leave macOS full-screen view, or use the VS Code menu command if you specifically want to change VS Code’s full-screen setting.
macOS can make this confusing because its native full-screen mode and an application’s own display mode may look similar. In native full screen, the app typically occupies a separate macOS space, and moving the pointer to the top edge reveals the system controls. If the app is merely maximized, it remains in the regular desktop space and can be resized from its window controls.
If the shortcut does not work, open the menu bar and select View > Appearance > Toggle Full Screen. You can also open the Command Palette with Command + Shift + P and search for the command by name.
Close Full Screen on Linux
On most Linux desktop environments, F11 toggles full screen in VS Code. If your keyboard requires it, press Fn + F11. The shortcut can also be affected by your desktop environment, window manager, or custom keyboard bindings.
If F11 does not work, use View > Appearance > Toggle Full Screen inside VS Code. You can also try the Command Palette by pressing Ctrl + Shift + P and searching for Toggle Full Screen. If the desktop has hidden its top panel, moving the pointer to the top edge may reveal window controls or the system panel.
Check Whether You Are in Zen Mode
Not every distraction-free VS Code screen is full screen. Zen Mode hides interface elements such as the Activity Bar, panel, and status bar so you can focus on your code. It may also make the editor appear almost full screen, even though VS Code’s window has not entered full-screen mode.
To exit Zen Mode, press Esc twice. In many default configurations, you can also toggle it with Ctrl + K, followed by Z on Windows and Linux, or Command + K, followed by Z on macOS. These are two-step shortcuts: press the first key combination, release it, and then press the second key.
You can use the Command Palette to search for View: Toggle Zen Mode. If the VS Code window still covers the display after you exit Zen Mode, turn off full-screen mode separately. Zen Mode and full-screen mode are different settings and can be active at the same time.
Restore Hidden Panels and Interface Elements
Sometimes VS Code is not in full-screen mode at all. You may have hidden a panel, sidebar, or menu bar, making the editor look unusually bare. These commands can help you restore the layout:
- Use View > Appearance > Show Primary Side Bar to bring back the side bar.
- Press
Ctrl+Jon Windows and Linux, orCommand+Jon macOS, to toggle the bottom panel. - Use View > Appearance to check options for the Activity Bar, Status Bar, and menu bar.
- Search the Command Palette for the relevant Toggle or Show command if you cannot find an item in the menus.
Restoring these elements will not necessarily exit full-screen mode. If your window still takes up the entire display, use the full-screen toggle as well. Checking the mode and the interface layout separately helps you identify what changed.
Change or Find the Full-Screen Shortcut
If the default shortcut is inconvenient, or it conflicts with another application, you can review and change VS Code’s keybinding. Open File > Preferences > Keyboard Shortcuts on Windows or Linux. On macOS, open Code > Settings > Keyboard Shortcuts. You can also open the Command Palette and search for Preferences: Open Keyboard Shortcuts.
In the Keyboard Shortcuts editor, search for Toggle Full Screen. The listed binding shows the shortcut currently assigned on your system. Select the pencil icon beside the command to enter a new key combination. Avoid choosing a shortcut already used by your operating system or another important VS Code command.
If a shortcut is missing or behaves differently than expected, the menu command remains available. This can happen after installing extensions, importing settings, changing keyboard layouts, or using a laptop with special function-key behavior.
What to Do If You Cannot Exit Full Screen
If the usual shortcut does not restore your window, try these steps in order:
- Move the pointer to the top of the screen to reveal hidden window controls or the macOS menu bar.
- Use the VS Code menu and choose View > Appearance > Toggle Full Screen.
- Open the Command Palette and run Toggle Full Screen.
- If the editor looks minimal rather than truly full screen, exit Zen Mode with
Esctwice. - Check whether the window is maximized and use its restore control to make it smaller.
- Review your keyboard shortcuts to see whether the full-screen binding has changed.
If VS Code appears frozen, first wait briefly to see whether it is processing a task. You can then switch to another application using your operating system’s normal app-switching shortcut and return to VS Code. Restarting the editor should be a last resort, especially if you have unsaved work.
Full Screen vs. Maximized Window vs. Zen Mode
Knowing which mode is active makes it easier to choose the right fix. In full-screen mode, VS Code occupies the display and may hide window decorations. In a maximized window, it is enlarged to fill the available desktop area but usually retains its title bar and window controls. In Zen Mode, VS Code hides interface elements to reduce distractions, but the window itself does not have to be full screen.
These modes can overlap. For example, VS Code can be maximized and in Zen Mode, or full screen with the side bar hidden. If one shortcut does not restore everything, try the relevant command for each mode instead of assuming that a single setting controls the whole layout.
Conclusion
To close VS Code full screen, use F11 on Windows or Linux, or Control + Command + F on macOS. You can also choose View > Appearance > Toggle Full Screen or run the command from the Command Palette. If the screen still looks different afterward, check whether Zen Mode is active, the window is maximized, or interface panels are hidden. Identifying the specific mode will help you restore the VS Code layout you want without closing your editor or losing your work.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.