AI-powered route management extension for Visual Studio Code.
Quickly create Express sub-routes and automatically fix missing route code directly from the VS Code Title Bar and Explorer context menu.
✨ Overview
vs-code-ext-express-api-gen-routes is a Visual Studio Code extension developed by KeshavSoft for improving Express.js route management and reducing manual backend maintenance.
This extension focuses on two important developer tasks:
- Creating modular sub-routes automatically
- Fixing incomplete or broken route files instantly
🎯 Main Features
➕ addSubRoute
Automatically creates and registers sub-route structures for Express applications.
The extension generates:
- Route files
- Router configuration
- Route registration
- Modular API structure
Example
router.use("/users", usersRouter);
🛠️ fix
The fix command automatically detects and regenerates missing or incomplete route code inside selected files.
Example Problems Fixed
Missing export:
export { router };
Missing router initialization:
const router = express.Router();
Missing imports:
import express from "express";
The extension automatically regenerates required code sections and fixes structure issues.
⚡ Features
✅ Create Express sub-routes instantly ✅ Auto-fix broken or incomplete route files ✅ Reduce repetitive backend coding ✅ Modular Express architecture support ✅ VS Code Explorer integration ✅ Faster Node.js API development ✅ Beginner-friendly workflow
🖼️ Workflow
addSubRoute
- Right-click a folder or file
- Select:
addSubRoute
- Enter sub-route name
- Extension generates route structure automatically
fix
- Open broken route file
- Click:
fix
- Extension scans the file
- Missing code is regenerated automatically
📁 Folder Structure
vs-code-ext-express-api-gen-routes
│
├── .vscode
├── archive
├── Docs
├── node_modules
├── src
├── test
│
├── extension.js
├── package.json
├── README.md
└── CHANGELOG.md
🛠️ Commands
| Command | Description |
|---|---|
addSubRoute |
Creates modular Express sub-routes |
fix |
Detects and regenerates missing route code |
🚀 Why Use This Extension?
- Save backend development time
- Quickly repair broken route files
- Maintain clean Express architecture
- Improve productivity inside VS Code
- Avoid repetitive manual fixes
🧠 Built With
- Node.js
- Express.js
- JavaScript
- VS Code Extension API
📄 License
MIT License
👨💻 Author
Developed by KeshavSoft
⭐ Support
If you like this project:
- ⭐ Star the repository
- 🍴 Fork the project
- 🚀 Share with developers