Java MVC Generator is a Visual Studio Code extension that automatically scaffolds a clean Model-View-Controller project structure in Java — perfect for students learning software design patterns.
Features
- Generates a full MVC folder structure in seconds
- Creates
Model,View, andControllerclasses with your custom properties - Automatically generates getters, setters, constructors, and
toString() - Includes a fully functional
Main.javawith a CRUD menu ready to run - Supports any Java data types (
String,int,double,boolean, etc.)
How to use
- Open a project folder in VS Code
- Press
Ctrl+Shift+Pto open the Command Palette - Type
Generar MVC Javaand press Enter - Enter the model name (e.g.
Student) - Enter the properties in
name:Typeformat separated by commas
Example
Model name: Student
Properties: name:String,age:int,studentId:String
Generated files:
src/ ├── model/ │ └── Student.java ├── view/ │ └── StudentView.java ├── controller/ │ └── StudentController.java └── Main.java
Each file includes:
| File | Contents |
|---|---|
Student.java |
Attributes, constructors, getters/setters, toString |
StudentController.java |
Full CRUD logic with ArrayList |
StudentView.java |
Console menu, input reading, display methods |
Main.java |
Entry point with a fully working CRUD loop |
Requirements
- Visual Studio Code
1.120.0or higher - Java Development Kit (JDK) installed
License
MIT