Write an Android project in Eclipse, want to count how many lines of code are written in the project (approximate number, because there are still a lot of blank lines in the code), how to count? How many lines of code files to write down first, and then add up obviously very bother, then how to do? You can use Eclipse's file search feature to count.
The steps are as follows:
1. Select only the directory of all the code that you wrote in the project (press and hold CTRL to select it), because there are many auto-generated and third-party libraries in the project, which cannot be counted in the total number of lines of code. As shown here, the main choice is SRC, layout, values of the three directories and androidmanifest.xml this file, because almost all of the code written in these four places.
2, click on the "File" menu under the Search menu, the dialog box appears, fill in the information as in, and click the "Search" button:
3. In the search results bar below eclipse, the number of search results is displayed, that is, the number of lines of code counted:
Count total lines of code for projects in eclipse