Skip to content
Follow
Windows

How to Enable or Disable Closing Warnings in Windows Terminal

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

Windows Terminal closing warnings are safety prompts that stop you from accidentally shutting down a window while multiple tabs are open. Starting with version 1.19, Windows Terminal shows this confirmation message whenever you close a window with more than one active tab.

Advertisement

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.

Advertisement

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

Windows Terminal closing warnings can be turned off or on by editing the settings .json file directly. You can find this file in the bottom left corner of the settings menu and change the setting using a simple text editor. This approach lets you bypass the standard settings menu if you prefer working with code.

  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.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

📚 Related Tutorials

How to Change Windows Terminal Launch Size
Windows How to Change Windows Terminal Launch Size
How to Set Default Profile in Windows Terminal
Windows How to Set Default Profile in Windows Terminal
How to Set Windows Terminal to Open with Command Prompt on Windows 11
Windows How to Set Windows Terminal to Open with Command Prompt on Windows 11
How to Access Command Prompt in Windows 11
Windows How to Access Command Prompt 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 *