Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
Windows Terminal’s closing warning is controlled by the confirmCloseAllTabs setting. Open Settings > Appearance, then switch Show close all tabs popup on to keep the confirmation or off to suppress it. The setting applies when you close a window that has multiple tabs; it does not govern every tab, pane, or application-exit confirmation.
How do I enable or disable the closing warning in Windows Terminal?
Use the Appearance page in Terminal’s Settings. The change takes effect for the Terminal window after you save it. You do not need to change a shell profile, recreate a tab, or edit a command prompt setting: this is a window-level Terminal preference.
As an Amazon Associate I earn from qualifying purchases.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
- Open Windows Terminal.
- Open the Terminal tab’s drop-down menu and choose Settings.
- Select Appearance in the left navigation.
- Find Show close all tabs popup.
- Turn the switch on to require a warning before closing a window with multiple tabs, or turn it off to close that window without this warning.
- Close a window containing at least two tabs to confirm the behavior.
The control is a graphical label for the JSON property confirmCloseAllTabs. Microsoft documents true as the default, so a normal installation shows the warning unless you change the option or explicitly set the property to false. See Microsoft’s Appearance settings reference for the documented behavior.
If you are deciding which value to use, think about the operation being protected. The prompt is useful when one keyboard shortcut could close a window containing several active shells. It is less useful when each Terminal window is intentionally temporary and you close complete windows repeatedly. Either choice changes only whether this particular confirmation appears; it does not alter what commands are running or how profiles are configured.
Popular on Amazon
- Aluminum Slim Computer Side Mount Clip: Compatible with all phones, featuring a portable foldable expansion bracket in sleek black finish
- Upgraded Magnetic Mount Technology: Designed for laptop, desktop monitor, MacBook, iPad and Tesla car screen with stable adsorption, adjustable angle, and dual-screen interaction support for improved office efficiency
- High-End Metal Craftsmanship: Selected high-hardness aluminum alloy with CNC precision machining, matte plating process, delicate texture that is wear-resistant and anti-scratch
- Strong Magnetic Attachment: Features upgraded high strength magnet with 200% increased magnetic force for firm phone attachment, innovative ring-shaped heat dissipation design prevents overheating and ensures no signal interference
- Wide Range of Compatibility: Works with iPhone 18/17/16/15/14/13/12 series including Pro Max/Mini versions, includes 2 metal rings for non-magnetic phones or cases for full device compatibility
What does confirmCloseAllTabs actually control?
confirmCloseAllTabs controls confirmation for closing a Terminal window that contains multiple tabs. It is not a universal “are you sure?” switch for every way of leaving Windows Terminal.
| Value | Result | When you will notice it |
|---|---|---|
true |
Closing a window with multiple tabs requires confirmation. | Attempting to close a two-tab-or-more window, such as with the window close button or the closeWindow action. |
false |
That close-window confirmation is suppressed. | The same multi-tab window closes without this specific prompt. |
| Property omitted | The documented default applies. | Microsoft documents the default as true, so the multi-tab confirmation remains enabled. |
The property accepts JSON booleans, not quoted text. Write true or false, not "true" or "false". The option is a root-level Terminal setting, alongside other window-wide properties; do not place it inside an individual profile object.
Because the documented condition is “a window with multiple tabs,” this setting is about the whole window close operation. Closing a single tab, closing a pane, or using another action can follow its own rules. A test with one tab therefore cannot prove that the setting is broken: the condition for this warning has not been met.
The setting is optional. You can leave it out rather than writing an explicit value, but omission does not create a third mode. It leaves the documented default behavior in place. Use an explicit value when you want the file to state your preference clearly or when you are diagnosing why a prompt appears.
How do I change the setting in settings.json?
Editing the file is useful when you want to inspect the exact value or when the Settings interface is unavailable. Windows Terminal provides a shortcut that opens the correct configuration file for the installation you are running.
- Open the Terminal drop-down menu.
- Hold Shift while selecting Settings. Terminal opens
settings.jsonin your default text editor instead of the graphical Settings page. - At the top level of the JSON object, add or change the property:
"confirmCloseAllTabs": true
Use false instead when you want to suppress the warning:
"confirmCloseAllTabs": false
If another property appears immediately before it, separate the entries with a comma. For example:
{
"confirmCloseAllTabs": false,
"copyFormatting": "none"
}
The example is illustrative; keep the other settings already in your file and preserve valid JSON syntax. Do not add comments, leave a trailing comma, or put the property under profiles. Save the file, return to Terminal, and close a multi-tab window to check the result. If Terminal rejects the file or falls back to an earlier configuration, reopen the file and check commas, quotation marks, and the location of the property.
Where exactly should the key go?
Place confirmCloseAllTabs directly inside the outermost JSON object. In a typical file, that means it sits alongside other global settings, not beneath profiles, profiles.defaults, or a named profile. The property describes how the Terminal window behaves regardless of whether its tabs run PowerShell, Command Prompt, or another configured shell.
Also popular on Amazon
- Anti-Slip Surface - Transform your laptop into a mobile workstation with the AboveTEK portable laptop lap desk. The anti-slip surface provides a strong grip for laptops up to 15.6 inches(Diagonal), while the double rubber strip on the bottom ensures a stable display or typing experience on your lap, couch, or bed.
- Retractable Mouse Pad - Retractable laptop mouse pad extends on both directions for the left/right handed with elevation along the edges for stopping mouse from falling off. The size of laptop tray is 14" X 9.7" and the size of mouse pad is 7.4" X 6.1".
- Effective Heat Shield - The effective heat shield made of sturdy and thick material protects your laptop from overheating. Prioritizes your comfort and safety, an ideal lap pad or board for working anywhere.
- EASY to Carry and Store - With an ergonomic and simplistic design, the lap desk is portable to store in a backpack. Only 15" in size, 2.2 lb of weight and with slim 0.6 inch thickness, it is ready to be easily carried around.
- Widely Applicable - The smooth platform accommodates laptops and tablets up to 15.6 inches(Diagonal), making it a versatile accessory and one of the best gifts for mom, dad, students and professionals. Perfect for use as a laptop bed tray or tablet holder anywhere at home, library, or park.
How should I edit an existing value?
Search the file for confirmCloseAllTabs. If it is already present, change only the value after the colon and keep the surrounding comma structure intact. If it is absent, add one entry at the root level. Do not create two entries with different values in the same object; keep one clear setting so the file is easy to inspect.
Recommended Free Tools
What should I check before saving?
- The spelling and capitalization are exactly
confirmCloseAllTabs. - The value is the JSON literal
trueorfalse, without quotation marks. - The key is inside the outer braces and outside every profile object.
- A preceding or following property has the required comma, but the final property has no trailing comma.
- Existing braces, brackets, and quotation marks remain paired.
Where is the Windows Terminal settings file located?
The path depends on how Terminal was installed. Microsoft lists separate locations for the stable package, the preview package, and unpackaged installations, so copying a path from another computer can edit the wrong instance.
| Installation | Documented path | What to watch for |
|---|---|---|
| Stable packaged Terminal | %LOCALAPPDATA%PackagesMicrosoft.WindowsTerminal_8wekyb3d8bbweLocalStatesettings.json |
Use this for the stable packaged application. |
| Preview packaged Terminal | %LOCALAPPDATA%PackagesMicrosoft.WindowsTerminalPreview_8wekyb3d8bbweLocalStatesettings.json |
The package name includes Preview; it is a separate configuration location. |
| Unpackaged Terminal | %LOCALAPPDATA%MicrosoftWindows Terminalsettings.json |
This path is not under the packaged-app Packages directory. |
These locations are documented in Microsoft’s Windows Terminal installation guidance. The Shift-click method is safer than guessing because it opens the file associated with the running installation. If you have both stable and preview versions, make sure you change the one you actually launch. Editing the stable file while testing Preview, for example, will appear to have no effect even when the JSON is perfect.
The environment-variable portion of the packaged paths represents your local application-data directory. Enter the path in File Explorer only if you need to inspect the file manually; normally, opening it from Terminal avoids choosing the wrong installation directory.
How can I check that the warning setting worked?
Create a simple, reversible check rather than relying on the appearance of the toggle alone. Test the same kind of close operation that the setting describes.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →- Open a new Terminal window and create a second tab using the + button or your usual tab shortcut.
- Confirm that both tabs belong to the same window. The setting concerns one window containing multiple tabs, not two separate windows.
- Attempt to close the window.
- With
confirmCloseAllTabsset totrue, Terminal should ask for confirmation before closing the multi-tab window. - With the value set to
false, the window should close without that specific prompt. - If you change the value, save it and repeat the same two-tab test so that you compare like with like.
If you test with only one tab, you are not exercising the documented condition. Add a second tab before deciding that the setting has failed. Likewise, do not use a quit command or an all-windows action for this test, because those actions have separate documented behavior.
Why am I still seeing a confirmation after setting it to false?
Most apparent failures come from testing a different close action, editing a different installation’s file, or placing the property in the wrong JSON object. Work through these checks in order.
You are using the separate quit action
Windows Terminal documents closeWindow and quit as different actions. closeWindow closes the current window and every tab in that window; its documented default key binding is Alt+F4. The quit action closes all open Terminal windows and is documented to show a confirmation dialog in the current window. Microsoft does not document confirmCloseAllTabs as disabling that separate quit confirmation. The distinction is described in the custom actions and keybindings reference.
You edited the wrong settings file
Stable, preview, and unpackaged installations use different paths. Open the drop-down in the copy of Terminal you are using, hold Shift, and select Settings to edit that instance’s file directly. This also avoids confusing a file left over from an installation you no longer launch.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Repair Windows errors before they cause bigger problems3Fix the driver behind crashes, sound loss and screen glitchesAlso popular on Amazon
- Spacious Design: Measuring 21.1" wide and 12" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
- Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy laptop support with the integrated device ledge.
- Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
- Durable Surface: Work with confidence on our lap desk's solid surface, featuring a blush pink color, ensuring optimal air circulation to prevent your laptop from overheating.
- On-the-Go Convenience: With an integrated handle and lightweight design (2.14 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.
The value is not at the root level
Move confirmCloseAllTabs outside any profile object. It belongs in the top-level settings object, not inside profiles.defaults or an individual profile. A profile-specific location does not match the documented scope of this option.
The JSON is invalid
Check that the value is an unquoted boolean and that neighboring properties are separated by commas. A missing comma, unmatched brace, or extra trailing comma can prevent Terminal from reading the change as intended. Compare the edited area with the short examples above and remove any comments you added for explanation.
You tested with one tab
The documented warning concerns closing a window with multiple tabs. Open at least two tabs before testing. Closing one tab or a one-tab window is not the test case described for this property.
The Settings page and file do not describe the same state
Use one method at a time while troubleshooting. If you edit the file, reopen the Settings page and verify the switch reflects the value you saved. If you use the switch, then inspect the file opened through the Shift-click shortcut to see the corresponding Boolean. The key point is to verify the instance and the root-level value rather than infer behavior from an unrelated close operation.
Does the warning apply to tabs, panes, and profiles?
The documented trigger is a window with multiple tabs. That wording matters:
- Multiple tabs in one window: this is the condition controlled by
confirmCloseAllTabs. - One tab: it does not meet the documented multi-tab condition, so it is not a useful test for the warning.
- Panes: the setting is not documented as a general pane-close confirmation switch.
- Profiles: the key is root-level, so it applies to the Terminal window regardless of which profiles its tabs use.
- All Terminal windows: the separate
quitaction has its own confirmation behavior and should not be conflated with this option.
This scope explains why changing the option does not make every close prompt disappear. It protects one specific whole-window operation while leaving other actions governed by their own rules.
Should I leave the closing warning enabled?
Keep it enabled if you commonly open several tabs and could close a whole work session accidentally. Set it to false if you deliberately close complete Terminal windows often and the extra confirmation interrupts your workflow.
- Choose
truefor shared computers, unfamiliar keyboard shortcuts, long-running shells, or sessions where losing all tabs would be costly. - Choose
falsefor a workflow that treats each Terminal window as disposable and uses a deliberate close routine. - Leave the default if you are unsure. Microsoft documents
trueas the default, which favors preventing an accidental multi-tab close.
There is no separate performance setting or additional component to install for either choice. This is a built-in preference, and changing it does not require purchasing hardware, accessories, or software. The practical trade-off is interruption versus an extra chance to cancel a whole-window close.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchThis is a workflow safeguard, not a recovery feature. It only gives you a chance to cancel the close operation; it does not change the commands, profiles, or tabs stored in your configuration. If you choose false, make sure that choice fits the way you use Alt+F4 or other window-closing controls.
Also popular on Amazon
- Full HD Portable Monitor - MNN 15.6inch portable laptop monitor with 1920*1080 resolution, advanced IPS glossy screen support 178° full viewing angle, it renders accurate and bright color, draws you into the video or game with lifelike colors and amazing detail.It can effectively reduce blue light radiation damage, no flickering, eye-care, and make it easier to watch for a long time.A second monitor for working from home.
- Double Type-C Port -For Plug & Play, the MNN monitor provides 2 Full Feature Type-C ports. Only One USB Type-C Cable is required to connect to the power supply & display signal transmission. NOTE: Your device should support thunderbolt 3.0 or USB 3.1 Type C DP ALT-MODE.which supports multiple connect ways to your laptops, PC, Phones, Macbooks, PS5/PS4, Xbox, and Switch.
- Lightweight Ultra Slim for Travel - As a portable external monitor,MNN portable laptop monitor easily accommodate to every suitcase and backpack and stress-free when you are holding it for a long time. They are truly portable computer monitors for travelers, students, gamers,engineers, and everyone.
- Give consideration to work and games - through multiple display modes [Copy Mode/Extended Mode/Second Screen Mode/Portrait Mode], we can bring you a clear second screen in the meeting, and expand the screen anytime and anywhere to improve work efficiency and improve the quality of life. Adjusting to HDR mode can upgrade the image to a new level, providing you with brighter highlights,deeper and more realistic colors, more realistic images, and amazing viewing/gaming experience.
- Powerful Smart Cover - MNN portable external monitor can work in both landscape and portrait mode, can be used as a gaming monitor, screen extender for laptop or phone. Comes with a scratch-proof smart cover made of durable PU leather exterior, doubles as a stand, provides comprehensive protection for this portable computer monitor.
What keyboard shortcut is associated with closing a Terminal window?
The documented default key binding for the closeWindow action is Alt+F4. That action closes the current Terminal window and all tabs in it, which is why it can trigger the multi-tab warning when confirmCloseAllTabs is true.
Windows Terminal also has a separate quit action for closing all open Terminal windows. Its confirmation behavior is documented independently, so changing the multi-tab close setting should not be treated as a way to remove every exit prompt. If a prompt appears while you are using a command or shortcut that invokes quit, inspect that action rather than repeatedly changing confirmCloseAllTabs.
The shortcut association does not change the setting’s scope. Whether you click the window’s close control or invoke the documented closeWindow binding, the relevant question is still whether the current window contains multiple tabs.
Common mistakes to avoid
- Using a string instead of a Boolean:
trueandfalsemust not be surrounded by quotation marks. - Putting the key in a profile: the setting belongs at the root of
settings.json. - Assuming every confirmation is the same: multi-tab window closing and the separate all-windows
quitaction are documented separately. - Testing the wrong window: verify that the Terminal instance you launch matches the settings file you edited.
- Testing with one tab: open multiple tabs because that is the condition Microsoft specifies for this warning.
- Breaking JSON punctuation: preserve commas between properties and valid braces around the root object.
- Adding comments to JSON: keep explanatory notes outside the file; the setting should remain valid JSON.
- Creating duplicate keys: keep one
confirmCloseAllTabsentry so the intended value is unambiguous. - Changing a profile instead of the window: profile settings do not control this root-level option.
- Assuming omission means disabled: removing the key returns you to Microsoft’s documented default of
true, not tofalse.
Quick reference
| Goal | Action | Expected scope |
|---|---|---|
| Keep the warning | Settings > Appearance > Show close all tabs popup: On, or set "confirmCloseAllTabs": true. |
Confirmation when closing a window with multiple tabs. |
| Suppress the warning | Settings > Appearance > Show close all tabs popup: Off, or set "confirmCloseAllTabs": false. |
No confirmation for that multi-tab close-window operation. |
| Use the documented default | Omit the optional property. | Microsoft documents true as the default. |
| Open the JSON file | Open the Terminal drop-down, hold Shift, and select Settings. | Opens the file for the running installation. |
| Test the change | Close a window containing multiple tabs. | Exercises the condition controlled by the setting. |
| Interpret Alt+F4 | Use the documented default binding for closeWindow. |
Closes the current window and all its tabs. |
| Distinguish all-windows exit | Check whether the separate quit action is being used. |
It closes all open Terminal windows and has separate confirmation behavior. |
Frequently asked questions
Does the setting affect closing a single-tab window?
Microsoft’s documented condition is a window with multiple tabs. A single-tab close does not meet that condition, so use a two-tab window when checking whether the option is working.
Can I set this option for only one Terminal profile?
No. confirmCloseAllTabs is a root-level window setting rather than a profile property. Changing it therefore applies to the Terminal window regardless of which shell profile its tabs use.
What happens if I remove confirmCloseAllTabs from the file?
The property is optional, and Microsoft documents true as its default. Omitting it therefore leaves the documented default behavior in place: a multi-tab window requires confirmation when closed.
Why does Alt+F4 behave differently from an exit command?
Alt+F4 is the documented default binding for closeWindow, which closes the current window and its tabs. The separate quit action closes all Terminal windows and has its own documented confirmation behavior.
Will changing the setting close or reopen my existing tabs?
No. The option controls whether a confirmation is required for a qualifying close operation. It does not change the profiles, commands, or tabs in the configuration. To observe the change, deliberately close a multi-tab window after saving.
Can I use both the Settings page and JSON editing?
Yes. They expose the same preference: the Appearance switch is the friendly label, and confirmCloseAllTabs is the underlying root-level JSON property. When troubleshooting, use the Shift-click shortcut to inspect the file belonging to the running installation.
Also popular on Amazon
- 【Rechargeable Optical Mouse/Energy Saving】:Computer Mouse Built-in Durable Rechargeable Battery,High Cycle Life,No Need Change Battery;Laptop Mouse Wireless Can Be Easily Charged Using the Included USB Cable,Just 2 Hours Charging,Mouse Wireless Can Use Than 5 Days of Working Time and 30 Days of Standby Time,Standby Time is Very Long;Tablet Mouse Will Fall Asleep After 5 Minutes No-Operation to Save Power and Provides Long Term Usage;You Can Wake ipad Mouse Up By Clicking any Button
- 【LED Colorful Breathing Light】:This Wireless Mice With 7 Different Colorful LED Breathing Lights,7 Different Color Changes Randomly While in Use,Offering Soothing Lighting;Creating Cool and Fancy Atmosphere for Office and Gaming,LED Mouse Can Give You More Fun During
- 【Wireless Bluetooth Mouse Dual Mode】:Mouses(BT5.2/3.0 and 2.4 G)Dual Mode Realize the Free Switching of One Wireless Bluetooth Mice Between Two Devices;Bluetooth Mouse Mode Can Connect One Device Through BT5.2/3.0 and Wireless Mouse Mode Another Device Through a 2.4G USB Receiver,No Need to Install any Driver,Plug and Play;Wireless/Bluetooth Technology Provides Powerful and Reliable Connection,Which Can Enables Fast Data Transmission Without Delays or Dropouts,Effective Up to 10 Meters(33 feet)of Range
- 【Silent/Fingerprint-proof】:Silent Laptop Mice Button Silent Click Design Reduces 90% Noises,Help You Concentrate on Your Work、Study Without Disturbing Others Besides You;Apple Mouse Fingerprint-proof Surface Coating Technology Design Gives Your a Skin-Like Touch,The sturdy anti-slip rubber scroll wheel ensures that your hand will not slip when scrolling;Slim Mouse Offers Your Hand Maximum Support and Comfort
- 【Wide Compatibility Wireless Mouse】:Wireless Bluetooth Mouse For Laptop/Computer/Apple/Notebook/Tablet/Macbook/ipad/iPhone;Mice is Compatible With Android/Chromebook/Windows/Vista/Linux/Notebook/Mac OS and Other Bluetooth Devices
Why does the warning still appear after I set the value to false?
Check whether you invoked quit instead of closeWindow, edited the wrong stable, preview, or unpackaged file, placed the key inside a profile, or tested a different window. Also verify that the value is the unquoted Boolean false and that the JSON remains valid.
Where can I verify the documented actions and settings?
Microsoft’s Appearance settings reference defines confirmCloseAllTabs, its values, default, and scope. The custom actions and keybindings reference documents closeWindow, its Alt+F4 default binding, and the separate quit action. Installation-specific file locations and the Shift-click method are listed in Microsoft’s Windows Terminal installation guidance.
Free tools Windows power users keep installed
One-click scans. No signup required.
Frequently Asked Questions
Does the setting affect closing a single-tab window?
Microsoft’s documented condition is a window with multiple tabs. A single-tab close does not meet that condition, so use a two-tab window when checking whether the option is working.
Can I set this option for only one Terminal profile?
No. confirmCloseAllTabs is a root-level window setting rather than a profile property. Changing it therefore applies to the Terminal window regardless of which shell profile its tabs use.
What happens if I remove confirmCloseAllTabs from the file?
The property is optional, and Microsoft documents true as its default. Omitting it therefore leaves the documented default behavior in place: a multi-tab window requires confirmation when closed.
Why does Alt+F4 behave differently from an exit command?
Alt+F4 is the documented default binding for closeWindow, which closes the current window and its tabs. The separate quit action closes all Terminal windows and has its own documented confirmation behavior.
Will changing the setting close or reopen my existing tabs?
No. The option controls whether a confirmation is required for a qualifying close operation. It does not change the profiles, commands, or tabs in the configuration.
The Bottom Line
Use Settings > Appearance > Show close all tabs popup to keep or remove Windows Terminal’s multi-tab close warning. The equivalent root-level JSON is "confirmCloseAllTabs": true or false. Test with multiple tabs, and remember that the separate quit action has its own confirmation behavior.

