DEV Community

Michael Andreuzza
Michael Andreuzza

Posted on

I made a VS Code extension to delete files content on right click

image

I was working on my new product where I needed to use the same name for about 100s of files across different folders.

Removing the content manually after copying the folders was tedious.

So, I created a VS Code extension. It allows you to right-click and delete file content from both the open file and the file tree.

I am still working on allowing to delete the content in bulk, by selecting various files on the file tree, but it does not want to work...

You can grab it here — https://michaelandreuzza.com/vscode/delete-on-right-click/

banner

Delete Content for VS Code

This extension allows to right click inside any file or on the file tree and delete the content but not the file itself.

Official website

Installation

  1. Open Extensions sidebar panel in VS Code. View → Extensions
  2. Search for Delete Content on right click
  3. Click Install to install it.

Known issues — There seems to be a problem preventing the bulk deletion of content when multiple items are selected. Instead, it only deletes the content of one file."

Top comments (0)