# TIP: use of snippets

**URL:** <https://community.silverfin.com/t/tip-use-of-snippets/837>\
**Category:** Getting Started\
**Tags:** short-cuts, key-short-cuts, snippets, editor\
**Created:** [April 25, 2018, 1:18pm UTC](https://community.silverfin.com/t/tip-use-of-snippets/837 "2018-04-25T13:18:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [April 25, 2018, 1:18pm UTC](https://community.silverfin.com/t/tip-use-of-snippets/837/1 "2018-04-25T13:18:38Z")

</div>

When writing down code, it can become apparent to write down mistakes, which causes your template to crash. If you have a lot of code, it can become time consuming to search where the error generated (although our editor gives you the line number where it goes wrong (probably)) :

```auto
{% if custom.meerwaarde.soort == 'vrijwillig' %}
Some text
{% endif } 

```

will generate this error:  
 ![52](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/5d9ad57e059aaeb1ecd4e11e2a5be7292accf6bc.png)

as you can see by now, your endif-tag was written down wrong (has to be `{% endif %}` instead of {% endif }!

📣💡

But you can avoid such things, by just typing the word of your opening-tag of your code and than immediately do a TAB.  
So in our example, just type if and then do TAB. What you’ll see, is that the Silverfin editor automatically creates your code!!

![editor](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/b6055d5affc9d8fe94a428a0c581eeffdce83cfb.gif)

You can use it for other statements as well.

Want unless-statement? Type unless and TAB

💡

You can see an overview of all the posibilities in the editor if you just press ALT + space  
 ![editor](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/c9bc086ab2216a92d5086d7bba40f26e5de0d446.gif)

So these are all the “words” you can just type and TAB to create your code in a single moment without having the change on making typos

---

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [April 25, 2018, 1:19pm UTC](https://community.silverfin.com/t/tip-use-of-snippets/837/2 "2018-04-25T13:19:36Z")

</div>



---

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [April 20, 2021, 7:13am UTC](https://community.silverfin.com/t/tip-use-of-snippets/837/3 "2021-04-20T07:13:21Z")

</div>

We’ve added 3 new snippets for the **group** , **indent** and **target** tags:

**group** `tab`

```auto
{::group}
content
{:/group}

```

more info [here](https://developer.silverfin.com/docs/group)

**indent** `tab`

```auto
{::indent level="level"}
content
{:/indent}

```

more info in [this](https://community.silverfin.com/t/case-use-indent-formatting-in-markdown/1722) case

**target** `tab`

```auto
{::target id="target_id"}label{:/target}

```

more info in [this](https://community.silverfin.com/t/case-how-to-link-to-a-section-of-a-template/606) case
