How to Enable or Disable “Do You Want to Close All Tabs” in Windows Terminal Windows Terminal supports multiple tabs and allows you to close all tabs simultaneously. However, depending on your workflow, the confirmation prompt that appears can be either helpful or disruptive. In this video, we’ll show you how to enable or disable the prompt that appears when closing multiple tabs in Windows Terminal. Before we begin, be sure to subscribe to NinjaOne's IT Video Hub and our YouTube channel for more tech content like this. Configuring the Prompt via Terminal Settings The fastest method for configuring Windows Terminal behavior is through the application’s settings. As long as a user has Terminal access, this method should be straightforward. First, press Win + X, then select Terminal. Click the dropdown menu next to Open a new tab and choose Settings. Now, select Interaction and find Warn when closing more than one tab. Toggle the switch beside Warn when closing more than one tab to match your preferred behavior. Turning it on enables the confirmatory prompt when closing multiple tabs, while turning it off disables the prompt. Press Save to finalize the changes. After saving, the change applies instantly for the current user. Configuring the Prompt with a JSON File For enterprises, using the settings.json file to deploy prompt configurations can be more time-efficient. Make sure you have a JSON file backup when using this method. Start by pressing Win + X, then selecting Terminal. Now, click the dropdown menu next to Open a new tab and choose Settings. In the bottom-left corner, click Open JSON file and select Notepad to open the JSON file when prompted. Search for the key named “confirmCloseAllTabs” and change its value to modify the Terminal exit’s behavior. If you want to enable confirmation prompts, the value pair should read as “confirmCloseAllTabs”:true, If you want to disable confirmation prompts, the value pair should read “confirmCloseAllTabs”: false, Once you’ve modified the key-value pair, save the file by pressing Ctrl + S, then restart Windows Terminal to apply the change. Always test configuration changes locally before deploying across multiple users. Whether you prefer instant tab closure or extra protection against accidental shutdowns, Windows Terminal gives you control over how tab closing behaves. For more information, check out our official blog post on How to Enable or Disable “Do You Want to Close All Tabs” in Windows Terminal linked in the description below.

How to Enable or Disable “Do You Want to Close All Tabs” in Windows Terminal

Windows Terminal supports closing all tabs at once, but depending on your workflow, the confirmation prompt can help prevent accidental shutdowns or slow you down. In this video, we show you how to manage the prompt that appears when Windows Terminal allows you to close all tabs using Terminal settings or a JSON file.

Read the full blog on How to Enable or Disable “Do You Want to Close All Tabs” in Windows Terminal

Never miss a NinjaOne video!