Mittwoch, 4. Mai 2011

Count Source Lines of Code in Visual Studio

Yep, I know, SLoC are not a good measure. But it´s ok to know if you are facing a 10k or a 10M SLoC project. So, with MS VS just:

- Ctrl+Shift+F
- For each language you use look for:

C#
^~(:Wh@//.+)~(:Wh@\{:Wh@)~(:Wh@\}:Wh@)~(:Wh@/#).+
VB.NET
^~(:Wh@'.+)~(:Wh@/#).+

- Click on "Use:" Regular expresions
- Select your language source code files in "Look at these these file types:"
- Go to results and check the "Matching lines"

Que aproveche!



Keine Kommentare:

Kommentar veröffentlichen