Skip to content
Follow
Windows

How to Enable or Disable Closing Warnings in Windows Terminal

Richard
Written by
Richard
Mar 11, 2023 Updated Aug 13, 2026 2 min read
How to Enable or Disable Closing Warnings in Windows Terminal
How to Enable or Disable Closing Warnings in Windows Terminal

Closing warnings in Windows Terminal are safety prompts that stop you from accidentally closing a window while you have multiple tabs open. Windows Terminal is the app that puts tools like Command Prompt and PowerShell into one tabbed window.

Starting with version 1.19, Windows Terminal shows a “Close all tabs?” message whenever you click the close button with more than one active tab running. Turning off this warning lets you close windows instantly, while keeping it on protects your work from sudden data loss.

⚡ Quick Answer

To control closing warnings in Windows Terminal, go to Settings, then Interaction, and toggle “Warn when closing more than one tab.” You can also edit the settings .json file and change “confirmCloseAllTabs” to true or false.

Single-Tab vs. Multi-Tab Warning Distinction

Windows Terminal suppresses warnings when closing a single tab. The confirmCloseAllTabs setting only triggers when a window contains multiple active tabs.

Method 1Using the Settings Menu

Turning the closing warning on or off for multiple tabs is managed within the Windows Terminal settings menu. Open the app, click the down arrow, navigate to Settings, and then select the Interaction tab.

Method 2Using the JSON Configuration File

Editing the settings file directly offers an alternative method for controlling the closing warning. This approach suits users comfortable working with code. The configuration file contains the specific property required to modify the closing warning behavior.

  1. Open the Windows Terminal settings.
  2. Click the Open JSON file button in the bottom left corner.
Windows Terminal open json file
Windows Terminal open json file
  1. Locate the "confirmCloseAllTabs" property within the file.
Windows Terminal open json file configuration section
Windows Terminal open json file configuration section
💻Code
"confirmCloseAllTabs": true
  1. To disable the warning, set the value to false. To enable it, set it to true.
  2. Save the file to apply your changes.
Windows Terminal with warning window
Windows Terminal with warning window

Troubleshooting and Configuration Context

Persistent closing warning settings require checking for the latest application updates. Verifying version numbers resolves most configuration issues.

Consult the official Microsoft Windows Terminal documentation or the GitHub repository for comprehensive troubleshooting details and known issues.

Summary

Managing multiple tab closing warnings in Windows Terminal is possible through either the graphical settings menu or the configuration file. While single-tab closures bypass this check, these configuration methods safeguard critical working sessions.

Why does Windows Terminal not warn me when closing one tab?

Windows Terminal omits warning prompts during single tab closures to maintain workflow efficiency. Multiple-tab warnings prevent accidental session loss, presuming single-tab closures represent deliberate actions.

Does the warning apply to all profiles?

Yes, the confirmCloseAllTabs setting is a global configuration. It applies to all profiles, including PowerShell, Command Prompt, and WSL (Windows Subsystem for Linux). Set the confirmCloseAllTabs property to false to disable the warning, or true to enable it. Save the file to apply the change.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Set Default Profile in Windows Terminal
Windows How to Set Default Profile in Windows Terminal
How to Change Windows Terminal Launch Size
Windows How to Change Windows Terminal Launch Size
How to Change Windows Terminal Launch Mode in Windows 11
Windows How to Change Windows Terminal Launch Mode in Windows 11
Change Windows Terminal Startup Behavior in Windows 11
Windows Change Windows Terminal Startup Behavior in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *