Create Visual Studio Code Extension

I was wondering how extensions for Visual Studio Code are created. Googling I found this.

I followed instructions there and created my first demo extension.

Step number 1 is to install with npm :

npm install -g yo generator-code

Then, generate boilerplate code

yo code

You wil see:

What to generate?

Check the dialog:

Answering setu

Then, check typescript generated code and setup in package.json

F5 to launch the extension. New instance from Visual Studio Code will open

Check the simple message on the bottom

Hello World typescript demo

You can even debug the typescript code.

Leave a Reply

Your email address will not be published. Required fields are marked *