โจ How to create Custom Emmet Snippets in VS Code!

I am a full stack developer, YouTuber and blogger!
Search for a command to run...

I am a full stack developer, YouTuber and blogger!
I'm going to create snippet for every thing now ๐. Thanks for sharing
Yeah it is released with VS Code version 1.51. Glad it helped
Hey all ๐๐ Webhooks are a powerful tool that allow applications to communicate with each other in real-time. They are often used to send notifications or updates from one system to another without requiring manual intervention. If you know the bas...

Hey everyone! It's been a while since I wrote my last article. But here I am with another topic that might be informational to you ๐. This time I am writing about why you should avoid the onclick attribute in your HTML and JavaScript code. This ar...

โ What and Why Memoriez โ This is a very important question because it makes things clear as to why this app is needed. I built Memoriez because I honestly found it hard to write and maintain journal/diary entries daily. It's not easy to maintain a j...

Explained with a simple project

๐ Hey developers! This post is about how you can sort import statements in your JavaScript/TypeScript/React/Node etc projects easily with Prettier in VS Code when you format the code. https://www.youtube.com/watch?v=QQWgN0_gUxI What will you achieve...

Emmet is very powerful and very productive! And the mix of Emmet & VS Code, is like never before. But sometimes you might want to generate an element that uses a long emmet snippet. VS Code version 1.51 was released with this one and many more features! So let's begin! ๐โโ๏ธ
snippets.json fileWe have to store our snippets inside of a snippets.json file. Pick a folder of your choice on your machine, and open that folder in VS Code. Create a new file called snippets.json

Now fill that file as shown below. I have an example snippet for you to try
{
"html": {
"snippets": {
"yourSnippet": ".container>h1.title",
}
}
}
You can put as many other snippets you want!
It is pretty easy and simple to configure this. You can simply go into the VS Code Settings, by pressing Ctrl + , or by going to the โ and clicking on Settings.

Then search for a setting called Extensions Path and click on Edit in settings.json.
Now simply copy the folder path where you have your snippets.json file created, and paste that in the "emmet.extensionsPath" setting. Like this ๐


That's it! Once you have put the path in the setting, you are good to go and use your own Custom Emmet Snippets in VS Code!

I hope this post helped you increase your productivity. Please consider giving it a like ๐, and commenting ๐ฌ below your experience about this feature, and sharing it!
I also have a YouTube video if you are interested in watching:
Thanks for reading!!!
VS Code theme used: GitHub Theme
Font used: Cascadia Code