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!".
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.
- Run
npm installon 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!".
