Search code examples
eclipseapache-flexeclipse-plugincode-metricsline-count

Lines of Code count for Flex in Eclipse


How to get the SLOC count for the Flex code in Eclipse? Is there a plug-in similar to "Metrics" for finding information about the Flex porject?


Solution

  • This is the easiest way to count lines of code of any particular language and does not require a plugin.

    Steps:

    1. Click on the root folder of your project
    2. Right-click and select Search (or Cntl+H)
    3. In the box "Containing Text" type \n and make sure to select the "Regular Expression" checkbox
    4. In the "File name patterns" input, type the file extensions of the files you want to include in your count, or click on "Choose" if you are feeling lazy.
    5. Click "Search"

    BAM! Instant line count for your entire project!

    These instructions may differ slightly depending on your version of Eclipse, but you should be able to figure it out.

    Good luck!