Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>CA-SCHEMATICSNew to Visual Studio Code? Get it now.
CA-SCHEMATICS

CA-SCHEMATICS

mrunivil

|
15 installs
| (0) | Free
This extension helps streamline the setup process by scaffolding boilerplate code, making it easier to adhere to the clean architecture pattern. It utilizes custom ca_schematics to handle code manipulation under the hood.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ca-schematics

This is my first extension. I will address bugs and enhance the usability of the extension in future updates. I also will provide a more professional readme soon.

This extension helps streamline the setup process by scaffolding boilerplate code, making it easier to adhere to the clean architecture pattern. It utilizes custom ca_schematics to handle code manipulation under the hood.

Features

A new Context Menu Item was added to the file explorer. If you hover over the CA_Schematics item the submenu with all the features provided will open.

The extension will use the following project structure to operate.

my-project/
└── src/
    ├── core/
    │   └── entities/
    ├── features/
    │   └── "feature-name"/
    │      └── data-sources/
    │           └── repositories/
    │           └── use-cases/
    │           └── "feature-name"-feature-module.ts
    ├── state
    │   └─ "feature-name"
    │       ├─ actions.ts
    │       ├─ "feature-name"-state-model.ts
    │       ├─ "feature-name"-state.ts
    │       ├─ "feature-name"-state-module.ts

If you break up this structure the code generation will fail. Please do not rename folders or files.

Create a new entity

a new entity will be scaffolded and saved to the entities directory. The process will also check if an entity with the same name is already existing.

Create a new feature

a new feature and all of its sub folders will be created. A skeleton of the necessary typescript files e.g. repositories and data sources will also be scaffolded.

Create a new use case

this will create a complete new use case. you need to follow the steps of the dialog.

  • select a feature where the new use case will be implemented
  • select a name for your use case
  • select the input parameter if you need some
    • decide if the parameter will be an array
  • select the return value type or void
    • decide if the return value type will be an array

the schematics will create and manipulate your code as follows:

  • create a new use case file
  • manage related imports (add entities to use case file)
  • add use case as provider to feature module
  • add new use case to repositories
  • manage related imports
  • add new use case to data sources
  • manage related imports

Changelog

v 1.0.6

updated depended schematics to support ngxs

v 1.0.0

initial release

  • create entity
  • create feature
  • create use case
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft