---
title: "Discussion on \"10 Code Snippets You Need to Try\" | Hashnode"
description: "Discussion on \"10 Code Snippets You Need to Try\". Code snippets are an essential tool I use daily that vastly speeds up my development process. When I watched a tutorial from Brad Traversy entitled  Code Faster With Custom VS Code Snippets, I instantly started customizing my snippets instead of depe..."
url: "https://hashnode.com/posts/10-code-snippets-you-need-to-try/5f50868fc48c6b29cd2ed090"
---

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

Discussion

# [10 Code Snippets You Need to Try](https://blog.alyssaholland.me/10-code-snippets-you-need-to-try?utm_source=hashnode&utm_medium=feed)

Code snippets are an essential tool I use daily that vastly speeds up my development process. When I watched a tutorial from Brad Traversy entitled Code Faster With Custom VS Code Snippets, I instantly started customizing my snippets instead of depe...

Sep 3, 2020 · 2 min read · blog.alyssaholland.me  
Updated Mar 13, 2022  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#snippets](https://hashnode.com/tag/snippets)
-   [#vscode](https://hashnode.com/tag/vscode)

## Written by

[Alyssa Holland](https://hashnode.com/@AlyssaCodes)

@AlyssaCodes

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

Programming. Productivity. Positivity

Welcome to my blog 👋🏽 I'm a Front-End Developer with a passion for learning! I write about Programming 👩🏽‍💻 and Productivity Tips ✅

## Responses 5

Markdown supported · ⌘↵ to post

[Mike CK](https://hashnode.com/@elevatika)

[Sep 5, 2020](https://hashnode.com/posts/10-code-snippets-you-need-to-try/5f50868fc48c6b29cd2ed090/comment/5f53c6d63c1c7b7c69017b3a)

I love this!

[Alyssa Holland](https://hashnode.com/@AlyssaCodes)

[Sep 5, 2020](https://hashnode.com/posts/10-code-snippets-you-need-to-try/5f50868fc48c6b29cd2ed090/comment/5f53c6d63c1c7b7c69017b3a#reply-5f53cf163c1c7b7c69017bd3)

Thanks Mike! That’s great to hear!

[Prateek Aher](https://hashnode.com/@prateek_aher)

[Sep 3, 2020](https://hashnode.com/posts/10-code-snippets-you-need-to-try/5f50868fc48c6b29cd2ed090/comment/5f50e3f298ae9829ac3db019)

I didn't know this till now. All I ever used was **!** for the HTML boilerplate code. Thanks for sharing this [Alyssa Holland](https://hashnode.com/@Code_Runnings).

[Alyssa Holland](https://hashnode.com/@AlyssaCodes)

[Sep 4, 2020](https://hashnode.com/posts/10-code-snippets-you-need-to-try/5f50868fc48c6b29cd2ed090/comment/5f50e3f298ae9829ac3db019#reply-5f51a03d1ed5446c783c26c1)

I’m more than happy to share! I hope this new information proves to be helpful for you!

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Sep 3, 2020](https://hashnode.com/posts/10-code-snippets-you-need-to-try/5f50868fc48c6b29cd2ed090/comment/5f50a58398ae9829ac3daba5)

Nice article Alyssa! 🤟

[Alyssa Holland](https://hashnode.com/@AlyssaCodes)

[Sep 4, 2020](https://hashnode.com/posts/10-code-snippets-you-need-to-try/5f50868fc48c6b29cd2ed090/comment/5f50a58398ae9829ac3daba5#reply-5f519f5d81d8ab6c5765ed79)

Thanks [Chris Bongers](https://hashnode.com/@dailydevtips)😃

[Dinys Monvoisin](https://hashnode.com/@dinmon)

[Sep 3, 2020](https://hashnode.com/posts/10-code-snippets-you-need-to-try/5f50868fc48c6b29cd2ed090/comment/5f508f7098ae9829ac3daa53)

How do you do, to remember all those codes snippets? Does it take time to make it a habit?

For me, I prefer to use VIM, which removes the needs to remember snippets.

I don't know that's my feeling. What's your opinion?

[Alyssa Holland](https://hashnode.com/@AlyssaCodes)

[Sep 3, 2020](https://hashnode.com/posts/10-code-snippets-you-need-to-try/5f50868fc48c6b29cd2ed090/comment/5f508f7098ae9829ac3daa53#reply-5f5094e398ae9829ac3daacb)

It has just become second nature to me. I try to structure the snippet abbreviations in a way that is easy for me to remember. For example, “ush” stands for “Use State Hook” and “arrow” represents an arrow function. Idk it’s just how my brain works 🙃 The great part about snippets is that you can customize them how you like so if an abbreviation I have doesn’t make sense to you, it’s very simple to change.

I’ve been wanting to get better at Vim but I don’t have the time to dedicate to it right now. I used Vim a lot in college. It’s very cool so definitely stick with that if that’s what you like.

[Dinys Monvoisin](https://hashnode.com/@dinmon)

[Sep 3, 2020](https://hashnode.com/posts/10-code-snippets-you-need-to-try/5f50868fc48c6b29cd2ed090/comment/5f508f7098ae9829ac3daa53#reply-5f50c99e98ae9829ac3dae0a)

Yep customising the code snippets in VScode sounds cool and hacky. The only one that I use at the moment is the Emmet plugin. I feel remembering the different snippets become problematic when you need to switch between different languages because you are working on some other projects.

I always said that, but I ensure you that learning Vim will be your best bet.

Check out my [post](https://dinmon.tech/why-you-should-consider-learning-vim) on Vim

[Skay](https://hashnode.com/@skay)

[Sep 3, 2020](https://hashnode.com/posts/10-code-snippets-you-need-to-try/5f50868fc48c6b29cd2ed090/comment/5f508c22c48c6b29cd2ed0cb)

Once again a such a useful article! Thanks for sharing this :-) I thought Emmet had all the shortcuts covered. Anyways, I ain't complaining. I have bookmarked this and will slowly build it into my muscle memory :-)

[Alyssa Holland](https://hashnode.com/@AlyssaCodes)

[Sep 3, 2020](https://hashnode.com/posts/10-code-snippets-you-need-to-try/5f50868fc48c6b29cd2ed090/comment/5f508c22c48c6b29cd2ed0cb#reply-5f50942898ae9829ac3daac6)

Thanks for the kind words! I hope they prove to be useful and save you time down the road. I promise the snippets become easy to remember once you start using them over and over again. 🙂
