Eclipse count lines of code

后端 未结 10 1028
孤城傲影
孤城傲影 2021-01-29 19:06

I\'ve tried the Metrics plugin and although it\'s nice and all, it\'s not what my boss is looking for. It counts a line with just one } as a line and he doesn\'t wa

10条回答
  •  囚心锁ツ
    2021-01-29 19:19

    There's always the "brute force":

    1. Search->File

    2. Type the following in "Containing text" -> ^.*$. Then check the "Regular Expression" checkbox

    3. Type the following in "File name patterns" -> *.java

    4. Click "Search"

    5. Check the number of matches in the "Search" Tab.

提交回复
热议问题