Search This Blog

Eclipse: count the number of lines

  • Search -> File...
  • Check "Regular Expression" and enter "Containing text": ^.*$
  • Enter "File name patterns": *.java
  • Click "Search" button
  • In the result "Search" tab, the number of matches is the number of lines (exclude blank lines)

No comments:

Post a Comment