What is Zen Mode in Visual Studio Code
Zen Mode in Visual Studio Code (VS Code) is a built-in distraction-free viewing option designed to help developers focus entirely on their code. This article explains what Zen Mode is, its main benefits, how to quickly enable and disable it, and how to customize its settings to best fit your development workflow.
What is Zen Mode?
Zen Mode is a display state in VS Code that eliminates visual clutter by hiding almost all of the user interface elements. When you activate Zen Mode, the editor transitions into a full-screen layout and conceals the following interface components:
- The Activity Bar (the vertical icon bar on the far side)
- The Side Bar (containing the File Explorer, Search, and Source Control)
- The Status Bar (the informational bar at the very bottom)
- The Panel (where the Terminal, Output, and Debug Console live)
By hiding these elements, Zen Mode leaves only the active code editor visible on your screen, allowing you to focus on your code without administrative distractions.
How to Enable and Disable Zen Mode
You can toggle Zen Mode on and off using any of the following methods:
- Keyboard Shortcut: Press
Ctrl+Kfollowed byZon Windows and Linux, orCmd+Kfollowed byZon macOS. - Command Palette: Press
F1orCtrl+Shift+P(Cmd+Shift+Pon macOS), type “Toggle Zen Mode,” and press Enter. - Application Menu: Go to the top menu bar, select View, hover over Appearance, and click on Zen Mode.
To exit Zen Mode, press the Esc key twice, or use the
keyboard shortcut Ctrl+K Z (Cmd+K Z on macOS)
again.
Customizing Zen Mode Settings
While the default behavior of Zen Mode is to hide everything and
enter full screen, you can customize this behavior to suit your
preferences. To adjust these settings, open your VS Code Settings
(Ctrl+, or Cmd+,) and search for “Zen
Mode.”
You can toggle the following options:
- Zen Mode: Full Screen: Uncheck this option if you want to keep your operating system’s window frame and taskbar visible.
- Zen Mode: Hide Status Bar: Uncheck this if you still need to see Git branches, error counts, or language modes at the bottom of the screen.
- Zen Mode: Hide Activity Bar: Uncheck this to keep your primary navigation icons visible.
- Zen Mode: Hide Line Numbers: Check this if you want a completely clean text slate without line numbers on the left side of the editor.