Exit focus mode in Windows Terminal is a hidden full-screen view that hides tabs and the title bar, giving you a distraction-free command line. This guide shows you how to turn it on and off, either with keyboard shortcuts or through the settings file, and what to do if the shortcut stops working.
What You’ll Need
- A Windows 10 or Windows 11 PC with Windows Terminal installed (it’s the default terminal app in Windows 11, and available from the Microsoft Store on Windows 10).
- Administrator rights are not required for basic toggling, but you may need them if you edit the settings.json file in the WindowsApps folder.
Step-by-Step
Method 1: Using the Keyboard Shortcut (Quickest)
- Open Windows Terminal. You can do this by right-clicking the Start button and selecting “Terminal” or “Terminal (Admin)”.
- Press Ctrl+Shift+P to open the Command Palette. This is a searchable list of all Terminal commands.
- Type “focus” into the search bar. You’ll see the command “Toggle Focus Mode” appear.
- Click on “Toggle Focus Mode” or press Enter. The title bar and tabs will disappear, leaving only the terminal window.
- To exit focus mode, press the same shortcut again: Ctrl+Shift+P, then type “focus” and select “Toggle Focus Mode” again. Alternatively, you can press Ctrl+Shift+Space if you have the default keybinding set (see tips below).
Method 2: Using the Settings UI
- Open Windows Terminal.
- Press Ctrl+, (comma) to open the Settings window.
- In the left sidebar, select “Actions” (or “Key bindings” in older versions).
- In the search box, type “focus”. You’ll see the “Toggle focus mode” action.
- If it’s not already assigned, click the “Add new” button next to it, then press the key combination you want (e.g., Ctrl+Shift+F). Click “Save” or “Apply” to confirm.
- Close the Settings window. Now you can use your custom shortcut to toggle focus mode.
Method 3: Editing settings.json (Advanced)
- Open Windows Terminal.
- Press Ctrl+, to open Settings.
- In the bottom-left corner of the Settings window, click “Open JSON file”. This opens the settings.json file in your default text editor (usually Notepad).
- In the JSON file, find the
"actions"array. It’s a list of objects in square brackets. - Add the following object to the list (if it’s not already there):
{ "command": "toggleFocusMode", "keys": "ctrl+shift+f" }If you want to use a different key combination, replace
ctrl+shift+fwith your preferred chord (e.g.,alt+f). - Save the file. The Terminal will automatically reload the settings (you might see a brief flash).
- Test the shortcut. If it doesn’t work, close and reopen Windows Terminal.
Common Mistakes
- Using the wrong shortcut: The default shortcut for focus mode is not Ctrl+Shift+F. That’s often used for “Find”. The default is actually unbound in many versions; you must set it yourself or use the Command Palette.
- Editing the wrong JSON file: If you have multiple profiles (e.g., PowerShell, CMD, Ubuntu), make sure you’re editing the global settings.json, not a profile-specific one. The global file is the one that opens from the Settings UI.
- Forgetting to save the JSON: If you edit settings.json in Notepad and don’t save, the Terminal won’t pick up the changes.
- Typing the action name incorrectly: In the JSON, the command must be exactly
toggleFocusMode(case-sensitive). If you typetoggle_focusorToggleFocus, it won’t work.
Tips
- Use the Command Palette as a fallback: Even if you forget the shortcut, Ctrl+Shift+P always works to toggle focus mode.
- Set a memorable shortcut: Many users prefer Ctrl+Shift+F for focus, but it may conflict with other apps. Choose something like Alt+F or Ctrl+Shift+Space if you need a unique one.
- Combine with full screen: Focus mode hides the tabs and title bar, but it doesn’t make the window full-screen. Press F11 (or Alt+Enter) to also make it full-screen for a truly immersive experience.
- Use it per-profile: You can set focus mode to start automatically when you open a specific profile by adding
"startupActions": "toggleFocusMode"to that profile’s settings in the JSON. - Quick exit: If you’re in focus mode and need to close the terminal, just type
exitand press Enter. You don’t need to exit focus mode first.
Troubleshooting
- Shortcut doesn’t do anything: First, check that you’re using the correct key combination. If you set it via the UI, make sure you clicked “Save” after assigning it. If you edited the JSON, check for typos and that the file is valid (look for red squiggles in Notepad or use a JSON validator).
- Command Palette doesn’t show “Toggle Focus Mode”: Ensure you’re running a recent version of Windows Terminal. If you’re on an old version, update it from the Microsoft Store or GitHub releases.
- Focus mode toggles but the window still shows tabs: This can happen if you have multiple panes open and the tab bar is set to “Always show” in the settings. Go to Settings > Appearance > Tab bar and set it to “Auto” or “Never”.
- Changes to settings.json don’t take effect: Close and reopen Windows Terminal completely (right-click the taskbar icon and select “Close window”). Sometimes the settings reload fails silently.
- I can’t exit focus mode: If the shortcut is unbound, use Ctrl+Shift+P and type “focus” to toggle it off. If that fails, close the terminal window (Alt+F4) and reopen it.
Frequently Asked Questions
What is the default shortcut for focus mode in Windows Terminal?
There is no default shortcut for focus mode in most versions. You must assign one yourself via Settings > Actions, or use the Command Palette (Ctrl+Shift+P) to toggle it.
Does focus mode hide the scrollbar?
No, focus mode only hides the tab bar and the title bar. The scrollbar remains visible. If you want to hide the scrollbar too, you can edit your profile’s JSON to set "scrollbarState": "hidden".
Can I use focus mode with multiple tabs?
Yes, you can. Focus mode hides the tab bar, but you can still switch between tabs using Ctrl+Tab and Ctrl+Shift+Tab. The tabs are still there; they’re just not visible.
Why does my focus mode shortcut conflict with another app?
If the key combination you chose is already used by another application, that app will receive the keystroke when it’s in the foreground. Choose a different combination that isn’t used by your common apps.
Is focus mode the same as full screen?
No. Focus mode hides the UI elements but keeps the window in its normal size. Full screen (F11) makes the window fill the entire monitor. You can use both together.
Can I make Windows Terminal always start in focus mode?
Yes. In settings.json, add "startupActions": "toggleFocusMode" to the global settings (or a specific profile). This will automatically toggle focus mode when the Terminal starts.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Detect Ransomware on Palo Alto VPN
- Cross Browser Testing in Chrome: Step-by-Step
- Arc Browser Little Arc: What It Is & How to Set It Up
- I2C HID Touchpad Failure Error: Fixes
- Convert Laptop Mic Port to Line In: Step-by-Step
- Samsung Note 4 Bluetooth Not Working: Solved