Apps Enable or Disable "Do you want to close all tabs" in Windows Terminal


  • Staff
Windows_Terminal_banner.png

Windows Terminal is a modern host application for the command-line shells you already love, like Command Prompt, PowerShell, and bash (via Windows Subsystem for Linux (WSL)). Its main features include multiple tabs, panes, Unicode and UTF-8 character support, a GPU accelerated text rendering engine, and the ability to create your own themes and customize text, colors, backgrounds, and shortcuts.

When you close Windows Terminal with more than one tab open, a Do you want to close all tabs confirmation dialog will appear to ensure you'd like to close all your tabs.

See also:

This tutorial will show you how to enable or disable the Windows Terminal Do you want to close all tabs confirmation dialog for your account in Windows 10 and Windows 11.


EXAMPLE: Windows Terminal "Do you want to close all tabs" confirmation dialog

Do_you_want_to_close_all_tabs_Windows_Terminal.png



Here's How:

1 Open Windows Terminal.

2 Click/tap on the down arrow button on the top bar, and click/tap on Settings Ctrl + , (comma). (see screenshot below)

Terminal_Settings.png

3 Click/tap Open JSON file in Windows Terminal Settings. (see screenshot below)

Terminal_Close_all_tabs-1.png

4 Perform the following steps in the Open with dialog: (see screenshot below)
  1. Select the Notepad app to open the JSON file with.
  2. Uncheck Always use this app to open .json files.
  3. Click/tap on OK.
Terminal_Close_all_tabs-2.png

5 Close Windows Terminal.

6 Perform one of the following steps in the opened JSON file in Notepad depending on if you want to enable (default) or disable the "Do you want to close all tabs" confirmation dialog: (see screenshots below)
  • DISABLE:
    Add the "confirmCloseAllTabs":false, line in the exact area below.
  • ENABLE:
    Either remove the "confirmCloseAllTabs":false, line or change "confirmCloseAllTabs":false, to "confirmCloseAllTabs":true,.
Terminal_Close_all_tabs-3.png
Terminal_Close_all_tabs-4.png

7 In the opened JSON file in Notepad, click/tap on File, and click/tap on Save. (see screenshot below)

Terminal_Close_all_tabs-5.png

8 You can now close the opened JSON file in Notepad.


That's it,
Shawn Brink


 

Attachments

  • Windows_Terminal.png
    Windows_Terminal.png
    5.5 KB · Views: 21
Last edited:

ThrashZone

Minor Threat
Power User
VIP
Local time
4:13 AM
Posts
1,267
Visit site
OS
Linux-Mint-Cinnamon-20.2 Win-7-10-11Pro's
Hi,
Very nice even without a reg file :cool:
 

My Computer

System One

  • OS
    Linux-Mint-Cinnamon-20.2 Win-7-10-11Pro's
    Computer type
    PC/Desktop
    Manufacturer/Model
    asus x3
    CPU
    10900k & 9940x & 5930k
    Motherboard
    z490-Apex & x299-Apex & x99-Sabertooth
    Memory
    Trident-Z Royal 4000c16 2x16gb & Trident-Z 3600c16 4x8gb & 3200c14 4x8gb
    Graphics Card(s)
    Titan Xp & 1080ti FTW3 & evga 980ti gaming
    Sound Card
    Onboard Realtek x3
    Monitor(s) Displays
    1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24"/ 3rd LG 43" series
    Screen Resolution
    1920-1080 not sure what the t.v is besides 43" class scales from 1920-1080 perfectly
    Hard Drives
    To many to list
    PSU
    1000p2 & 1200p2 & 850p2
    Case
    D450 x2 & 1 Test bench in cherry Entertainment center
    Cooling
    Custom water loops x3 with 2x mora 360mm rads only 980ti gaming air cooled
    Keyboard
    G710+x3
    Mouse
    Redragon x3
    Internet Speed
    xfinity gigabyte
    Browser
    Firefox
    Antivirus
    mbam pro

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
4:13 AM
Posts
7,424
Visit site
OS
Windows 11 Pro for Workstations

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    1TB Samsung 980 PRO M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium

Latest Support Threads

Top Bottom