Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Clean Architecture C# SnippetsNew to Visual Studio Code? Get it now.
Clean Architecture C# Snippets

Clean Architecture C# Snippets

Ivan Paulovich

|
3,914 installs
| (0) | Free
Clean Architecture C# Snippets for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Clean Architecture C# Extension for Visual Studio Code

C# extension to guide you into implementing a software following the Clean Architecture principles. It helps with the project structure, design patterns, dependencies and using frameworks correctly.

Install

You can install Clean Architecture C# Snippets from the Visual Studio Code Marketplace.

Index of Features

  • Domain
    • New Aggregate Root
    • New Entity
    • New Value Object
    • New Domain Service
    • New Factory
  • Application
    • Add Boundaries
    • New Use Case
  • Roadmap

Domain

Create a folder name Domain then right click on it for the following options.

Domain Context Menu

New Aggregate Root

Type the Aggregate Root name and press enter. The following files will be created:

  • Aggregate Root abstract class.
  • Aggregate Root interface.
  • Aggregate Root Repository interface.

New Entity

Type the Entity name and press enter. The following files will be created:

  • Aggregate Root abstract class.
  • Aggregate Root interface.

New Value Object

Type the Value Object name and press enter. The following file will be created:

  • Value Object struct.

New Service

Type the Domain Service name and press enter. The following file will be created:

  • Sealed domain service class.

New Factory

Type the Factory name and press enter. The following file will be created:

  • Factory interface.

Application

Create a folder name Application then right click on it for the following options.

Application Context Menu

Add Boundaries

The following files will be created:

  • Use Case Interface.
  • Use Case Standard Output Port interface.
  • Use Case Error Output Port interface.
  • Use Case Not Found Output Port interface.

New Use Case

The following files will be created:

  • Use Case implementation.
  • Use Case boundary.

Roadmap

  • [x] Add initial context menu options.
  • [ ] Link templates to Clean Architecture Manga wiki.
  • [ ] Add fine grained code snippets.
  • [ ] Add more context menu options.
  • [ ] Code analyzers.
  • [ ] Add common dependencies.
  • [ ] Generate solution structure.
  • [ ] Add tools for infrastructure.
  • [ ] Add tools for user interface.

Features are released quickly. Check out the Changelog and give a :star:!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft