Eraser85’s Corner

Replace me with something cool already said by someone else ;)

  • Pages

  •  

    January 2009
    M T W T F S S
    « Jul    
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  
  • My Flickr

    First boot

    GTX285 with Core i7 920

    Intel Core i7 on Asus P6T

    Panoramic view of Frankfurt am Main

    More Photos

Archive for January, 2009

How to count total lines of code in VS.NET

Posted by eraser85 on January 19, 2009

I’ve found this little neat string that can be used in the VS.NET integrated Find and gives your current project / solution / file total line count:

^~(:Wh@//.+)~(:Wh@\{:Wh@)~(:Wh@\}:Wh@)~(:Wh@/#).+

To use it, just press CTRL+SHIFT+F, then select Use Regular Expressions and finally write the file extensions in which you want to count the lines of code. :)

The results will be displayed at the Find result window’s end.

Thanks go to Germán Schuager for the tip.

Posted in General Programming | Tagged: , , , | Leave a Comment »