There are more questions, you thought you were done )? Next question is asking you for a description of your extension. This means name and identifier will be the same thing: This is how it will appear in the Visual Studio marketplace so let's give it a good name, for example like this: The step after this is to give our extension a name. We opt for creating new and therefore we just hit the return key. Next up we get a dialogue asking us to select between importing existing snippets from a folder or create new:
We got plenty of choices above but let's select New Code Snippets Let's show each screen and see what we need to select: The above will trigger a dialogue in which you need to make some choices.
There is a scaffolder for this that lets you create a project in like a second. What I learned building my own estension.
What we are about to show, is how to create an extension given a Snippets template but there are so many more extensions you could be creating so here are some links to know more once you get through this article: Of course, each of these steps has a lot of substeps to them, but don't worry I will explain them all in detail so you at the end of this article get off your chair and celebrate just like this: So how do we go about doing that? Well, it's actually just three major steps: It's time to take the next step, let's share our creation with the world. Ok, we created a snippet in the first article of our series Snippet creation. publish extension to Visual Studio Marketplace.write extension, in this case, it's about writing snippets.In this article we will build an extension and bring it all the way to the Marketplace for people to download inside of their VS Code - you can soon call yourself an extension creator For that, we have Visual Studio Marketplace. VS Code - publish your (snippet) extension, we are hereĬreating a snippet or a color theme in VS Code is all well and good, but what if you created something really great that you want to show a friend or better yet give to the community.
VS Code - snippet creation, covers who to author snippets.This article is part of a series, this is part I. Follow me on Twitter, happy to take your suggestions on topics or improvements /Chris