This extension helps developers identify unused media files within their project. It scans all files in the workspace and highlights any media files (like .png, .jpg, .jpeg, .gif, .svg, .webp) that are not imported or referenced in your code.
Highlights unused image files in the side bar with a customizable background color.
Benefits
Helps developers clean up unused assets and improve project organization.
Reduces project size by eliminating unnecessary media files.
Installation:
Open VS Code and go to the Extensions tab (Ctrl+Shift+X on Windows or Command+Shift+X on macOS).
Search for "Unused Image Highlighter".
Click on the extension and click "Install".
Usage:
Open your workspace in VS Code.
The extension will automatically scan your project files in the background.
Unused image files will be highlighted in the side bar with a orange textColor and and "Un" badge (customizable in settings).
Settings:
You can change the Font Color used to highlight unused media files in the VS Code settings.
Choose to show the "Un" badge.
Choose to propagate the colors to the parent folders.
Search for "Unused Image Highlighter" in the settings editor and adjust to your preferences.
You can set manually on the settings file with the tags unused-images-highlighter.fontColor, unused-images-highlighter.badge and unused-images-highlighter.propagate.