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.
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.
- Open the Windows Terminal settings.
- Click the Open JSON file button in the bottom left corner.

- Locate the
"confirmCloseAllTabs"property within the file.

"confirmCloseAllTabs": true
- To disable the warning, set the value to
false. To enable it, set it totrue. - Save the file to apply your changes.

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?
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.
No comments yet — be the first to share your thoughts!