VS Code Extensions
Java MVC Generator

Java MVC Generator

by JavaMVCTools

Generate MVC structure automatically

Downloads

14

Rating

5.0 / 5 (1)

Version

0.0.3

Last updated

Jun 03, 2026

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, and Controller classes with your custom properties
  • Automatically generates getters, setters, constructors, and toString()
  • Includes a fully functional Main.java with a CRUD menu ready to run
  • Supports any Java data types (String, int, double, boolean, etc.)

How to use

  1. Open a project folder in VS Code
  2. Press Ctrl+Shift+P to open the Command Palette
  3. Type Generar MVC Java and press Enter
  4. Enter the model name (e.g. Student)
  5. Enter the properties in name:Type format 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.0 or higher
  • Java Development Kit (JDK) installed

License

MIT

Related extensions