How to Turn On or Off the Warning When Closing Multiple Tabs in Windows Terminal
The close tab warning in Windows Terminal is a safety prompt that asks “Do you want to close all tabs?” whenever you try to exit the app with more than one tab open. This feature stops you from losing open sessions in tools like Command Prompt, PowerShell, or WSL by accident.
You can turn this warning on or off in just a few clicks by changing the settings file in Windows Terminal. Your changes apply right away so the popup stops appearing or stays active to protect your work.
Open Windows Terminal settings, navigate to the Interaction tab, and toggle the “Warn when closing more than one tab” option. This setting controls whether a confirmation prompt appears when you attempt to close multiple tabs.
What is Windows Terminal?
Windows Terminal is a modern app that lets you use command-line tools like Command Prompt, PowerShell, and Linux Bash on Windows 11. It supports multiple tabs, split views, custom colors, and more.
Why is the Warning Useful?
When you have many tabs open and try to close the terminal, this warning helps you avoid accidentally closing everything and losing your work.
How to Turn the Warning On or Off Using Windows Terminal Settings
- Open Windows Terminal:
Click the Start button, type Terminal, and click the Windows Terminal app to open it. - Go to Settings :
In the Windows Terminal window, click the down arrow next to the tabs at the top, then click Settings or press Ctrl + ,. - Find the Interaction Tab:
In the Settings window, select the Interaction tab on the left side. - Toggle the Warning:
Look for the option “Warn when closing more than one tab” and switch it On to get the warning, or Off to disable it. - Save Changes:
Click Save at the bottom to apply your changes.

You can manage the Windows Terminal close warning through the app settings to stop accidental closures. Open Windows Terminal, go to Settings by pressing Ctrl + ,, select the Interaction tab on the left side, and find the option to turn the warning on or off depending on your preference.

You can manage the Windows Terminal close warning through the app settings to stop accidental closures. Open Windows Terminal, go to Settings by pressing Ctrl + ,, select the Interaction tab on the left side, and find the option to turn the warning on or off depending on your preference.

You can manage the Windows Terminal close warning through the app settings to stop accidental closures. Open Windows Terminal, go to Settings by pressing Ctrl + ,, select the Interaction tab on the left side, and find the option to turn the warning on or off depending on your preference.
How to Turn the Warning On or Off Using the JSON File
The Windows Terminal close warning can also be adjusted by editing the configuration file directly. Open the settings menu, click Open JSON file at the bottom left, and locate the confirmCloseAllTabs setting to switch between true and false values.
- Open Windows Terminal.
- Go to Settings as explained above.
- At the bottom left of the Settings window, click Open JSON file.
- Look for the line that says
"confirmCloseAllTabs":trueor"confirmCloseAllTabs":false. - To enable the warning, make sure it says:
"confirmCloseAllTabs": true, - To disable the warning, change it to:
"confirmCloseAllTabs": false, - Save the file and close it.


What the Warning Looks Like
When enabled, if you try to close Windows Terminal with multiple tabs open, you will see a warning like this:

Summary
- Windows Terminal lets you run multiple command-line tabs at once.
- You can turn on or off a warning message that appears when closing the app with many tabs open.
- This setting can be changed easily through the app’s Settings or by editing the JSON file.
- The warning helps prevent accidentally closing all your tabs and losing your work.
The Windows Terminal close warning helps protect your active work sessions by asking for confirmation before shutting down multiple tabs. You can easily turn this safety prompt on or off using either the built-in settings menu or the configuration file.
That's it! Now you know how to control the close warning in Windows Terminal.
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!