This is a VS Code extension for automatically importing resource files and generating the corresponding index.ts file.
Features
Automatically scan resource files in the specified directory (supports .png, .jpg, .jpeg, .gif, .svg formats).
Generate an index.ts file containing all resource file imports and exports.
Installation
Clone or download this project to your local computer.
Open the project folder in VS Code.
Run npm install to install dependencies.
Usage
Press F5 to start the extended debugging mode.
In the debug window, press Ctrl+Shift+P (or Cmd+Shift+P on Mac) to open the command palette.
Enter and select the Import Resource Files command.
Enter the resource folder path (for example: src/res), the extension will automatically scan the resource files in the directory and generate the index.ts file.
Configuration
The extension will cache the resource folder path entered last time into globalState, the default path is src/res.
Known Issues
No known issues.
Contributing
Feel free to submit issues and feature requests. If you want to contribute code, please fork this project and submit a pull request.
Release History
0.0.2
Initial release.
License
This project is licensed under the MIT License - see the LICENSE file for details.