Sample code illustrating the VS Code extension API.
TypeScript
10,185
1,307 commits
updated Sep 5, 2026
This repository contains sample code illustrating the VS Code extension API. Each sample is a self-contained extension that explains one topic in VS Code API or VS Code's Contribution Points. You can read, play with or adapt from these samples to create your own extensions.
You can expect from each sample:
You need to have node and npm installed on your system to run the examples. It is recommended to use the node version used for VS Code development itself which is documented here
git clone https://github.com/Microsoft/vscode-extension-samplescode <any-sample-folder>npm install in the terminal, then F5 to run the sampleCopyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
(top 24 of 93)
1,237 followers · starred Aug 2024
400 followers · starred Sep 2022
1,718 followers · starred Apr 2020
124 followers · starred May 2020
TypeScript
79.0%
JavaScript
15.1%
Rust
3.4%
CSS
1.4%
Sample code illustrating the VS Code extension API.
TypeScript
10,185
1,307 commits
updated Sep 5, 2026
This repository contains sample code illustrating the VS Code extension API. Each sample is a self-contained extension that explains one topic in VS Code API or VS Code's Contribution Points. You can read, play with or adapt from these samples to create your own extensions.
You can expect from each sample:
You need to have node and npm installed on your system to run the examples. It is recommended to use the node version used for VS Code development itself which is documented here
git clone https://github.com/Microsoft/vscode-extension-samplescode <any-sample-folder>npm install in the terminal, then F5 to run the sampleCopyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
(top 24 of 93)
1,237 followers · starred Aug 2024
400 followers · starred Sep 2022
1,718 followers · starred Apr 2020
124 followers · starred May 2020
TypeScript
79.0%
JavaScript
15.1%
Rust
3.4%
CSS
1.4%