AutoStructure VS Code Extension
AutoStructure is a Visual Studio Code extension that helps you quickly create structured projects for multiple programming languages, frameworks, and use cases. It supports Python, Node.js, JavaScript, TypeScript, C++, and Web (HTML/CSS). The extension also sets up virtual environments for Python and runs npm install for Node.js projects automatically in the VS Code terminal.
Features
Create project structures for multiple languages:
- Python: AI, Web, Game, CLI
- Node.js / JavaScript / TypeScript: Web, CLI, AI
- C++: CLI, Game, Library
- HTML/CSS: Standard Web
Automatically create folders and files based on templates.
Pre-fill files with starter code for each framework.
Python:
- Creates a virtual environment (
venv)
- Installs dependencies from
requirements.txt
- Sets the project interpreter in
.vscode/settings.json
Node.js:
- Runs
npm install automatically for package.json projects.
Works entirely in the VS Code terminal for live feedback.
Usage
Open a folder/workspace in VS Code.
Open the command palette (Ctrl+Shift+P / Cmd+Shift+P).
Run the command: Create Project.
Select the programming language.
Choose the project type / use case.
Select a framework if applicable (e.g., PyTorch, Flask, Next.js, SFML).
AutoStructure will:
- Create folders and files
- Pre-fill starter code
- Create a Python virtual environment and install requirements (if Python)
- Run
npm install for Node.js projects
All operations are visible in the VS Code terminal.
Supported Languages and Frameworks
| Language |
Use Cases |
Frameworks / Notes |
| Python |
AI, Web, Game, CLI |
PyTorch, TensorFlow, llamacpp, Flask, FastAPI, Django, Pygame |
| Node.js |
Web, CLI, AI |
Express.js, Next.js, TensorFlow.js |
| JavaScript |
Web, CLI, AI |
Standard JS |
| TypeScript |
Web, CLI, AI |
Next.js, CLI, Standard TS |
| C++ |
CLI, Game, Library |
SFML, CMake |
| HTML/CSS |
Web |
Standard HTML/CSS/JS |
License
MIT License
Notes
- Make sure you have Python and/or Node.js installed for the respective projects.
- VS Code Python extension is required to automatically select the Python virtual environment interpreter.
- Customize templates in the extension code for your preferred folder and file structure.
| |