Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Delete File and Keep OpenNew to Visual Studio Code? Get it now.
Delete File and Keep Open

Delete File and Keep Open

David Alejandro

|
172 installs
| (1) | Free
Delete a file and keep it open in the editor, instead of it being automatically closed by VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Delete File and Keep Open VS Code extension

This extension allows you to delete files without automatically closing the file in the editor.

Currently, VS Code doesn't have plans to add this feature. And the current workbench.editor.closeOnFileDelete setting is only for reacting to external file events, not from within VSCode (like the explorer).

The extension is inspired by SublimeText, as many other extension are.

Features

Deleting a file:

command

The file remains open, can be edited and saved again in-place.

Requirements

None.

Extension Settings

No settings yet.

Known Issues

No issues yet.

Release Notes

1.0.0

Initial release.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft