How to Use Zen Mode, Full Screen, and Centered Layout in VS Code

Remove distractions and focus on your code. Learn Zen Mode, full screen, and centered editor layout for deep work sessions.

5 min read

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:

ElementDefault behavior
Activity BarHidden
Status BarHidden
Line numbersHidden
SidebarsHidden
Panel (terminal, problems)Hidden
EditorVisible
Editor tabsVisible (multiple tabs)
NotificationsHidden

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:

SettingDefaultWhat it controls
zenMode.hideActivityBartrueHide the Activity Bar
zenMode.hideStatusBartrueHide the Status Bar
zenMode.hideLineNumberstrueHide line numbers in the editor
zenMode.showTabsmultipleShow multiple tabs, single tab, or no tabs
zenMode.fullScreentrueSwitch to full screen display
zenMode.centerLayouttrueUse centered editor layout
zenMode.restoretrueRestore Zen Mode on restart if it was active
zenMode.silentNotificationstrueSuppress notification popups

For example, to keep line numbers and tabs but hide everything else:

jsonjson
"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

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.
RunePowered by Rune AI

Frequently Asked Questions

How do I exit Zen Mode?

Press Escape twice. The first press may close an open dropdown or dialog. The second press exits Zen Mode and restores the normal layout.

Can I use Zen Mode without full screen?

Yes. Set zenMode.fullScreen to false. Zen Mode will hide UI elements and center the editor without taking over the full screen.

What is the centered editor layout used for?

Centered layout narrows the editor area and centers it on screen. It is useful on wide monitors where full-width lines are hard to read. You can use it with or without Zen Mode.

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.