Skip to content

lannonbr/vscode-codelens-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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