Zen Mode strips away every UI element except the editor so you can focus on your code. Full screen gives the editor your entire display, and centered layout keeps long lines readable on wide monitors.
You can use each feature independently or combine all three.
Zen Mode
Zen Mode hides the Activity Bar, Status Bar, line numbers, and notifications. It switches to full screen and centers the editor. The result is a clean, distraction-free view where nothing competes for your attention.
Enter Zen Mode
Press Ctrl+K Z on Windows and Linux, or Cmd+K Z on macOS. You can also go to View > Appearance > Zen Mode, or run the View: Toggle Zen Mode command from the Command Palette.
Exit Zen Mode
Press Escape twice. The first Escape closes any open dropdown or panel. The second Escape exits Zen Mode and restores your normal layout.
When you exit, VS Code returns to your previous layout. Files stay open, your cursor position is preserved, and all panels and sidebars reappear.
What stays visible in Zen Mode
By default, Zen Mode only shows the editor and editor tabs. Everything else is hidden. Here is exactly what Zen Mode hides and keeps:
| Element | Default behavior |
|---|---|
| Activity Bar | Hidden |
| Status Bar | Hidden |
| Line numbers | Hidden |
| Sidebars | Hidden |
| Panel (terminal, problems) | Hidden |
| Editor | Visible |
| Editor tabs | Visible (multiple tabs) |
| Notifications | Hidden |
The editor is the only thing that remains. Even the minimap stays hidden if you have it enabled in normal mode.
Customizing Zen Mode
Every Zen Mode behavior is configurable. If you want to keep tabs, show line numbers, or skip full screen, change the settings:
| Setting | Default | What it controls |
|---|---|---|
| zenMode.hideActivityBar | true | Hide the Activity Bar |
| zenMode.hideStatusBar | true | Hide the Status Bar |
| zenMode.hideLineNumbers | true | Hide line numbers in the editor |
| zenMode.showTabs | multiple | Show multiple tabs, single tab, or no tabs |
| zenMode.fullScreen | true | Switch to full screen display |
| zenMode.centerLayout | true | Use centered editor layout |
| zenMode.restore | true | Restore Zen Mode on restart if it was active |
| zenMode.silentNotifications | true | Suppress notification popups |
For example, to keep line numbers and tabs but hide everything else:
"zenMode.hideLineNumbers": false,
"zenMode.showTabs": "multiple"To use Zen Mode without full screen, set zenMode.fullScreen to false. The editor stays in its normal window but still hides the UI elements.
Full screen
Full screen makes VS Code fill your entire display, hiding the operating system taskbar and window frame. You can use it with or without Zen Mode.
Toggle full screen with F11 on Windows and Linux, or Cmd+Ctrl+F on macOS. You can also go to View > Appearance > Full Screen.
When Zen Mode enables full screen by default, exiting Zen Mode also exits full screen. If you enable full screen independently, it stays active until you toggle it off.
Centered editor layout
Centered layout narrows the editor area and centers it on screen. On a wide monitor, full-width lines are hard to read. Centered layout gives you a comfortable column width with empty space on both sides.
To enable centered layout without Zen Mode, go to View > Appearance > Centered Layout. This toggles the layout on and off.
You can resize the centered area by dragging the side borders. Hold the Alt key while dragging to move each side independently.
When Zen Mode is active, centered layout is enabled by default. If you disable zenMode.centerLayout, the editor fills the full width instead.
Combining all three
The most focused setup combines all three: Zen Mode hides the UI, full screen maximizes the display, and centered layout keeps the code readable.
Enter Zen Mode with Ctrl+K Z (Cmd+K Z on macOS). You get all three at once. If you prefer to keep one or two, adjust the settings:
- Keep full screen but leave the Status Bar visible: zenMode.hideStatusBar to false
- Center the editor but keep tabs: zenMode.showTabs stays at multiple
- Go full screen but skip centering: zenMode.centerLayout to false
VS Code remembers your Zen Mode settings. When you toggle Zen Mode next time, the same customizations apply.
Next steps
These features help you focus on code you are already working on. To find and open files faster, use Quick Open. To manage your editor layout for multi-file work, learn how to split editors and manage tabs.
Rune AI
Key Insights
- Toggle Zen Mode with Ctrl+K Z (Cmd+K Z on macOS). Exit by pressing Escape twice.
- Zen Mode hides the Activity Bar, Status Bar, and line numbers by default. It also enables full screen and centered layout.
- Customize Zen Mode with settings like zenMode.hideActivityBar, zenMode.showTabs, and zenMode.fullScreen.
- Centered layout narrows the editor on wide monitors. Use it from View > Appearance > Centered Layout.
- Full screen (F11 on Windows/Linux, Cmd+Ctrl+F on macOS) works with or without Zen Mode.
Frequently Asked Questions
How do I exit Zen Mode?
Can I use Zen Mode without full screen?
What is the centered editor layout used for?
Conclusion
Zen Mode removes everything except the code. Full screen gives the editor maximum space. Centered layout keeps long lines readable on wide monitors. Mix and match the settings to create a focused environment that works for you.
More in this topic
How to Use VS Code with WSL 2 on Windows
Run VS Code connected to Windows Subsystem for Linux so you can develop in a full Linux environment with native tools, terminals, and debugging, all from Windows.
20 Best VS Code Extensions for Web Developers in 2026
Twenty carefully chosen VS Code extensions every web developer should know. Covers formatting, linting, frameworks, debugging, Git, and developer experience.
How to Install, Disable, Update, and Uninstall VS Code Extensions
Learn how to install, disable, update, and uninstall VS Code extensions from the Marketplace and the command line. Step-by-step instructions for every action.