Skip to content

A small extention for visual studio : count lines of code in {} c# block

License

Notifications You must be signed in to change notification settings

jurion/SimpleLinesCount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Async SimpleLines count

Applies to Visual Studio 2019 and newer

This is a simple extention for line counting in a vlock of c# code

Clone the repo to test out in Visual Studio 2019 yourself.

Quick Info

This project is heavily based on Microsoft SDK Examples here : https://github.com/microsoft/VSSDK-Extensibility-Samples/tree/master/AsyncQuickInfo

Ignored lines

this extension doesn’t count the following lines :

  • Empty line
  • Commented (//) line
  • Line containing only “{“ or “}” (or “{//” or “}//”)

Unfortunately for now multiline comments are counted. (/* */)

TODOs :

Add a page in the options.

Use codeLens instead of quickInfo

Use Roslyn to parse actual code tree

About

A small extention for visual studio : count lines of code in {} c# block

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages