Skip to content

lannonbr/vscode-codelens-example

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published