This VSCode extension generates a barebones Chrome extension (manifest v3) project with a side panel or a popup. The generated project includes all the necessary files and structure to help you quickly start building your Chrome extension.
- Automatic Project Generation: Generates the required files and folders for a basic Chrome extension.
- Pre-built Templates: Includes template files for
manifest.json
,background.js
, includingsidepanel.html
,sidepanel.css
, andsidepanel.js
ORpopup.html
,popup.css
, andpopup.js
- Customizable: Easily modify the generated templates to suit your needs.
- Open extension.js and press F5. Alternatively, you can choose Run > Start Debugging, or open the Run and Debug panel and click Run and Debug.
- A new VSCode window will open. Select or Create a Folder for the new project to exist in, and then open the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
on Mac) and run the commandImport Project Structure
.
-
Generate a New Chrome Extension Project:
- Open VSCode and create a new workspace or folder where you want the Chrome extension project to be generated.
- Use the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
on Mac) and run the commandImport Project Structure
. - Select the JSON file that defines the project structure.
-
JSON Structure for Project Generation: The extension relies on a JSON file that defines the structure of the Chrome extension project. Here’s an example of what the JSON file might look like:
- The project includes files such as
manifest.json
,background.js
, andsidepanel.html
. - It also creates folders like
css
andjs
, and adds the appropriate files to these folders.
- The project includes files such as
-
Generated Project Structure: Once the command is executed, the specified files and folders will be created in your workspace, setting up the basic structure for your Chrome extension.
The content for the generated files is stored in the templates
directory of this extension. You can customize these templates to change the content of the files generated by the extension.
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.