Force Close All File TabsForce close all file tabs without saving — instantly discard unsaved changes in VS Code, no confirmation dialogs! Perfect for those who want to swiftly close multiple unsaved files without clicking "Don't Save" over and over again.
The ProblemYou've searched and replaced across dozens of files — or opened a huge project and now have 50+ tabs. Closing them with unsaved changes means VS Code asks "Do you want to save?" for every. single. file. This extension fixes that. Features
InstallationVia VS Code Marketplace
Via Command Line
UsageCommand PalettePress
Default BehaviorWhen you run "Force Close All File Tabs", a Quick Pick menu appears with two options:
All unsaved changes are discarded. No per-file confirmation dialogs. KeybindingsThis extension does not add keybindings by default. To set your own, open your keybindings JSON ( macOS:
Windows / Linux:
Settings
Example: Close instantly without any prompt
FAQQ: Does it close all file tabs or only unsaved ones? A: It closes all file tabs — both saved and unsaved. The key benefit is that unsaved files are closed without per-file confirmation dialogs. Q: Does it close terminal or output tabs? A: No. Only file tabs (text editors) are force-closed. Terminal, output, and other non-file tabs remain open. Q: Is there any risk of losing work? A: By default, a Quick Pick prompt reminds you that unsaved changes will be discarded. If you disable the prompt via settings, the extension closes everything immediately — so use with care! Q: Does it work in Cursor?
A: Yes! Cursor is based on VS Code, so this extension works there as well. Install the Q: Will it slow down VS Code? A: No. The extension is lightweight and only activates when you explicitly run one of its commands. LicenseMIT — Copyright (c) 2023-2026 Dirk Dassow |