RapidStart Web Generator
Overview
Rapidly initialize vanilla web projects with customizable HTML, CSS, and JS boilerplate. Whether you're starting a new project or a quick demo, this extension streamlines your workflow by generating the essential structure in seconds.
Features
- One-Click Initialization: Generate a complete
index.html, style.css, and script.js directly from the status bar.
- Explorer Integration: Right-click any folder in the Explorer and select "Create Raw Project" to initialize in that specific location.
- Customizable Templates: Fully customize the generated code snippets through VS Code settings.
- Live Preview Integration: Automatically trigger Live Server to preview your creation immediately.
- TypeScript Powered: Robust and performant core built on modern VS Code APIs.
How to Use
Via Status Bar
- Open a workspace folder.
- Click the
$(file-code) Vanilla Project icon in the right side of the status bar.
- Boilerplate files will be created and
index.html will open automatically.
- Right-click any folder in the Side Bar.
- Select "Create Vanilla Project".
- The project will be initialized inside the selected folder.
Via Command Palette
- Press
F1 or Ctrl+Shift+P to open the Command Palette.
- Type "Rapid".
- Select "RapidStart: Create Vanilla Project".
Technical Details
Generated Boilerplate
The extension generates a clean, modern structure:
index.html: Modern HTML5 boilerplate with pre-linked CSS and JS.
css/style.css: Basic CSS reset and container utilities.
js/script.js: Clean entry point with a verification log.
Extension Settings
Modify templates and behavior by navigating to File > Preferences > Settings and searching for htmlGenerator:
htmlGenerator.autoStartLiveServer: Automatically trigger Live Server after project generation (default: true).
htmlGenerator.customTemplateDirectory: Path to a directory containing your custom templates (html.template / index.html, css.template / style.css, js.template / script.js). Can be relative to your workspace or an absolute path.
htmlGenerator.customHtmlTemplate: Override the default HTML boilerplate inline.
htmlGenerator.customCssTemplate: Override the default CSS styles inline.
htmlGenerator.customJsTemplate: Override the default JavaScript logic inline.
Template Variables
All templates support dynamic placeholder tags which are automatically interpolated during generation:
| Variable |
Description |
Example Output |
{{projectName}} |
Name of the active folder/project |
my-portfolio |
{{title}} |
Formatted title case project name |
My Portfolio |
{{year}} |
Current calendar year |
2026 |
{{date}} |
Current date in ISO format |
2026-11-11 |
Both {{key}} and ${key} syntaxes are supported.
Recommended Extensions
This extension integrates smoothly with the Live Server extension for real-time live reload and browser preview.
Installation
- Open Visual Studio Code.
- Go to the Extensions view (
Ctrl+Shift+X).
- Search for RapidStart Web Generator.
- Click Install.
Contributing
Contributions are welcome! If you have suggestions or find bugs, please feel free to:
- Fork the repository.
- Create a feature branch.
- Submit a Pull Request.
License
This project is licensed under the MIT License.
Changelog
See CHANGELOG.md for a list of recent changes.