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
- Open the Windows Terminal app. You can do this by searching for “Terminal” in your Start menu.

- Click the down arrow at the top of the window and choose Settings.

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

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

- Locate the section shown in your text editor.

- To disable the warning, add this line to your code:
"confirmCloseAllTabs":false, - To enable the warning, add this line instead:
"confirmCloseAllTabs":true, - Save the file to apply your changes.

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?
Leave a Reply Cancel reply