Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Hello World Minimal

This is a minimal "Hello World" example of an extension.

It has the command "Hello World", which shows a pop-up message saying "Hello World!".

extension demo

Extension Manifest (package.json)

No dependencies are required.

These are the minimum required fields:

{
  "name": "example",
  "version": "0.0.1",
  "engines": {
    "vscode": "^1.32.0"
  },
  "activationEvents": [
    "onCommand:example.helloWorld"
  ],
  "main": "extension.js",
  "contributes": {
    "commands": [
      {
        "command": "example.helloWorld",
        "title": "Hello World"
      }
    ]
  }
}

If you are publishing an extension, you should consider adding more metadata. Adding anything else is at your own discretion.

VS Code API Reference

vscode module

Contribution Points

Running the Extension

  • Run npm install on the command-line to install the dev dependencies.
  • Press F5 to run the "Launch Extension" Debug Configuration. This will run the extension in a new VS Code window.
  • Select the command "Hello World" from the Command Palette (Ctrl+Shift+p). This will show a pop-up message saying "Hello World!".