---
title: "Discussion on \"Create your own snippets in VS Code\" | Hashnode"
description: "Discussion on \"Create your own snippets in VS Code\". Often you find yourself typing repetitive code or code you don't always remember by heart. With Visual Studio Code you can easily create your own code snippets so you can use them at any time. Like this:\n\nStart by opening the Command Palette Ctrl + S..."
url: "https://hashnode.com/posts/create-your-own-snippets-in-vs-code/60466c9ee2865f44bf965cea"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Create your own snippets in VS Code](https://gaute.hashnode.dev/create-your-own-snippets-in-vs-code?utm_source=hashnode&utm_medium=feed)

Often you find yourself typing repetitive code or code you don't always remember by heart. With Visual Studio Code you can easily create your own code snippets so you can use them at any time. Like this: Start by opening the Command Palette Ctrl + S...

Mar 8, 2021 · 2 min read · gaute.hashnode.dev  
Read the article

-   [#vscode](https://hashnode.com/tag/vscode)
-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Gaute Meek Olsen](https://hashnode.com/@Gaute)

@Gaute · Oslo, Norway

  
[View profile](https://hashnode.com/@Gaute)

## Responses 1

Markdown supported · ⌘↵ to post

[Thomas Shallenberger](https://hashnode.com/@valkn0t)

[Mar 9, 2021](https://hashnode.com/posts/create-your-own-snippets-in-vs-code/60466c9ee2865f44bf965cea/comment/6047915c5afecf51e0326a3d)

Yeah but it's so tedious trying to write a user snippet manually in multiple text strings, formatted correctly, with the right indentation, etc. Also hard to add the variable stops where you want to be prompted for custom input.

[Gaute Meek Olsen](https://hashnode.com/@Gaute)

[Mar 9, 2021](https://hashnode.com/posts/create-your-own-snippets-in-vs-code/60466c9ee2865f44bf965cea/comment/6047915c5afecf51e0326a3d#reply-604792340b907051bba3db45)

I agree, I wish they could improve that! Luckily it's a one-time job.

[Matej Bošnjak](https://hashnode.com/@mbosnjak)

[Mar 9, 2021](https://hashnode.com/posts/create-your-own-snippets-in-vs-code/60466c9ee2865f44bf965cea/comment/6047915c5afecf51e0326a3d#reply-6047fa87c64c63545921cad2)

Hi.

Setting up [prettier.io](https://prettier.io/) should help enough not to think of snippet format at least for the start.
