开发者

How to know the No. of java files in my workspace in Eclipse?

开发者 https://www.devze.com 2022-12-31 10:05 出处:网络
I have a java project with a lot java files. So, I want to know the number of .java files in m开发者_开发技巧y project in Eclipse. How to know that?Press Ctrl+Shift+r to show the resources. Then enter

I have a java project with a lot java files. So, I want to know the number of .java files in m开发者_开发技巧y project in Eclipse. How to know that?


Press Ctrl+Shift+r to show the resources. Then enter *.java and mark all items of the list (Ctrl+a). The list will give you a summary how many resources it has found.


Other way is to search for something in 'File search'(Ctrl+H) with 'File name patterns' as '*.java'. As soon as you hit Search button, it will show you the number of java files on the bottom.

For eg: Scanning file xx of xxxx. Where xxxx will be the number of java files in your project. ;-)


Take a look at JavaNCSS - it provides many relevant code metrics.

0

精彩评论

暂无评论...
验证码 换一张
取 消