Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Model Class GeneratorNew to Visual Studio Code? Get it now.
Model Class Generator

Model Class Generator

asif khan

|
71 installs
| (0) | Free
This extension lets us create a model class by accepting properties and datatypes, also generates constructor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

This is a Model class generator extension. Steps to generate a class: 1- Install the visual studio code extension named "Model Class Generator" (author Asif Khan). 2- Make Sure you are in a directory/folder where you want to create the typescript file. 3- Go to command pallette (view -> command pallete or ctrl+shift+p). 4- Search for "create Model class" -> Enter. 5- Select language in which you want to create the class. 6- Select the location where you want the class to be generated. 7- Type the class name -> Enter. 8- Type property name -> Enter. 9- Select datatype -> Enter. 10- Press Enter if you are done with adding properties. 11- Select 'Yes' to generate constructor or 'No' for otherwise. 12- A class should be generated in the provided location.

Note: 1-Repeat step 8 and 9 for multiple property addition. 2-Accepted Datatypes:

		"number",
		"string",
		"boolean",
		"Array",
		"Tuple",
		"Enum",
		"any",
		"void",
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft