Author Topic: count lines of code in project/workspace, like the SLOC gadget for VisualStudio  (Read 8073 times)

radim48197

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Hello,

how do I count lines of code in project/workspace, like the SLOC gadget for VisualStudio?  I use Slickedit_13 on Linux.

TIA,
Radim

tballant

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Is this possible?  I have been trying to find a way to do this within SlickEdit.  It seems odd that SlickEdit supports doing this is Visual Studio but not SlickEdit itself.

alicecbrown

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Please someone, since I can't understand what is said in Help about the LOC count....could you go out to SlickEdit help, enter in the search "Lines of Code count" or some such and explain what they tell you.
Where exactly on the menu bar am I supposed to find the instructions/commands to do this?
thanks

chrisant

  • Senior Community Member
  • Posts: 1410
  • Hero Points: 131
Please someone, since I can't understand what is said in Help about the LOC count....could you go out to SlickEdit help, enter in the search "Lines of Code count" or some such and explain what they tell you.
Where exactly on the menu bar am I supposed to find the instructions/commands to do this?
thanks

Which help, where?

I started SlickEdit, chose Help->Search from the menus, and entered "lines of code count" in the search box.
Several topics are listed, but none are about counting lines of code.

Which topic or feature are you looking for help on?

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Counting lines of code is described in the tutorials part of the macro programming section of the help.
It gives a link to here
http://www.slickedit.com/content/view/440/80/
where you can download the file linecount.e

Alicecbrown  - the help file describes how to load this file and use it.  If you have any problems, post back.  If you're using the slickedit gadgets for VS, you don't need to download anything but if you're using plain slickedit, you need linecount.e.

If you can't get slickedit to count lines for you, google for counting lines of code  - no quotes  - you'll find some free tools.

You can also try this
http://www.ultimatepp.org/examples$CodeMetric.html

You can download Ultimate++ and build the example yourself
http://www.ultimatepp.org/

Graeme

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347