Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

CodeLens example extension

This is an example extension showing off how you can implement custom CodeLenses.

It adds a CodeLens called "Add console.log" to the top of all JS files. When activated, it requests a line number and then will insert a console.log snippet at that line number.

Setup

To Test out the extension, download this repo, run npm i, and then go to the debug panel in VS Code and run the "Extension" launch config.

About

This is an example VS Code extension showing off how you can implement custom CodeLenses.

Resources

License

Releases

No releases published

Packages

No packages published