Windows

How to Enable or Disable Closing Warnings in Windows Terminal

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

Windows Terminal is a tool that lets you run command-line programs like Command Prompt, Windows PowerShell, and bash via Windows Subsystem for Linux (WSL). It is powerful because it supports multiple tabs, custom themes, and fast text rendering.

Why do this? By default, Windows Terminal warns you if you try to close the window while several tabs are open. This prevents you from accidentally losing your work. You might want to turn this off if you prefer a faster exit, or turn it on if you often close windows by mistake.

What happens when done? Once you change this setting, Windows Terminal will either stop asking for confirmation before closing or start prompting you every time you close multiple tabs at once.

Method 1: Using the Settings Menu

  1. Open the Windows Terminal app. You can do this by searching for “Terminal” in your Start menu.
windows 11 open terminal app

  1. Click the down arrow at the top of the window and choose Settings.
Windows Terminal Settings button updated

  1. Click on the Interaction tab on the left.
  2. Find the option labeled “Warn when closing more than one tab.”
  3. Toggle the switch to On to enable the warning, or Off to disable it.
Windows Terminal warn when closing more than one tab

  1. Click the Save button to apply your changes.

Method 2: Using the JSON Configuration File

You can also change this setting by editing the configuration file directly.

  1. Open the Windows Terminal settings as shown in the previous steps.
  2. Click the Open JSON file button located in the bottom left corner.
Windows Terminal open json file

  1. Locate the section shown in your text editor.
Windows Terminal open json file configuration section

  1. To disable the warning, add this line to your code: "confirmCloseAllTabs":false,
  2. To enable the warning, add this line instead: "confirmCloseAllTabs":true,
  3. Save the file to apply your changes.
Windows Terminal with warning window

Reference: https://learn.microsoft.com/en-us/windows/terminal/

Summary

Windows Terminal helps you stay organized with multiple tabs. You can control whether the app warns you before closing by using the Interaction menu in the settings or by manually editing the JSON configuration file. This ensures you only see the exit prompt when you actually want to see it.

Was this guide helpful?

Tags: #Windows 11
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, the owner and lead writer at Geek Rewind, is a tech enthusiast passionate about simplifying complex IT topics. His years of hands-on experience in system administration and enterprise IT operations have honed his ability to provide practical insights 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.

2458 articles → Twitter

📚 Related Tutorials

How to Install Linux on Windows Subsystem for Linux (WSL)
Windows How to Install Linux on Windows Subsystem for Linux (WSL)
How to Access Command Prompt in Windows 11
Windows How to Access Command Prompt in Windows 11
How to Change Windows Terminal Startup Behavior in Windows 11
Windows How to Change Windows Terminal Startup Behavior in Windows 11
How to Set Default Profile in Windows Terminal
Windows How to Set Default Profile in Windows Terminal

Leave a Reply

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