# Visual Studio Item templates for quickly creating different Litium classes, such as Service and ServiceDecorator

**URL:** <https://forum.litium.com/t/visual-studio-item-templates-for-quickly-creating-different-litium-classes-such-as-service-and-servicedecorator/2318>\
**Category:** Questions\
**Created:** [November 16, 2021, 9:59pm UTC](https://forum.litium.com/t/visual-studio-item-templates-for-quickly-creating-different-litium-classes-such-as-service-and-servicedecorator/2318 "2021-11-16T21:59:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian.Engvall](https://avatars.discourse-cdn.com/v4/letter/c/919ad9/32.png) [@Christian.Engvall](https://forum.litium.com/u/Christian.Engvall)\
**Post date:** [November 16, 2021, 9:59pm UTC](https://forum.litium.com/t/visual-studio-item-templates-for-quickly-creating-different-litium-classes-such-as-service-and-servicedecorator/2318/1 "2021-11-16T21:59:30Z")

</div>

Hi!

I decided to share a couple of Visual Studio item templates that I use a lot, when for example creating a new service class.

This is an example of how it looks when adding a new service. The generated class has the Service-attribute added on creation for quickly making it ready for use: [(Link to full res gif)](https://camo.githubusercontent.com/170ee5477ac7db4bac67a03daeab789858c317261bd81a3c3a597caa1d7f7266/68747470733a2f2f7777772e63687269737469616e656e6776616c6c2e73652f77702d636f6e74656e742f75706c6f6164732f323032312f31312f4c697469756d56534974656d54656d706c617465734164642e676966)  
 ![LitiumVSItemTemplatesAdd](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/67381e6b74235dff099ce1898432456c4680d781.gif)

There are currently templates for **Block Controller** , **Service, Service Decorator, Validation Rule** and **View Controller**.

If you are interested you can find installation instructions over at [Github](https://github.com/crilleengvall/LitiumVSItemTemplates). Feel free to send PR’s with improvements or more templates.

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [November 16, 2021, 10:11pm UTC](https://forum.litium.com/t/visual-studio-item-templates-for-quickly-creating-different-litium-classes-such-as-service-and-servicedecorator/2318/2 "2021-11-16T22:11:57Z")

</div>

These look handy as heck - thanks for sharing! 👍

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [December 14, 2021, 10:12pm UTC](https://forum.litium.com/t/visual-studio-item-templates-for-quickly-creating-different-litium-classes-such-as-service-and-servicedecorator/2318/3 "2021-12-14T22:12:20Z")

</div>

Closed on December 14, 2021, 10:12pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
