From the course: Visual Studio Code: Building an Extension

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Converting snippets as extensions

Converting snippets as extensions - Visual Studio Code Tutorial

From the course: Visual Studio Code: Building an Extension

Start my 1-month free trial

Converting snippets as extensions

- [Instructor] So, what does it take to convert regular snippets into extensions? There's a few steps that we'll need to take care of. So, first of all, we need to convert these from just being something that is available through our current user to an extension that is in a project and can be published in the market place or packaged as an extension. Now, we'll need to add a new contribution point, and this is going to mean that we're no longer going to be able to test things without previewing or debugging the extension. So, we'll test things locally and it's common to add a category underneath the package.json file that identifies the type of item that we are adding right here. So, we haven't done this before. You can add a category of snippets, and if you want to, you can also add a category of theme, as well. Here's what the contribution entry point will have. First, it'll identify a series of snippets. Also…

Contents