Eclipse count lines of code

后端 未结 10 1187
孤城傲影
孤城傲影 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:33

    One possible way to count lines of code in Eclipse:

    using the Search / File... menu, select File Search tab, specify \n[\s]* for Containing text (this will not count empty lines), and tick Regular expression.

    Hat tip: www.monblocnotes.com/node/2030

提交回复
热议问题