Netbeans check how many lines of code




















Note: In NetBeans, the search is stopped after results, so if your project is longer than that then this method won't work. Johnathan, I liked your simple but useful LOC count program.

While I was using it for my project I found that the Scanner will not always count the correct number of lines, sometimes it didn't even count a single line for a specific file. A little reseach led me to this article Java scanner not going through entire file.

It seems that Scanner has some problems with different encodings. To avoid this and make the program more reliable I would suggest to replace the Scanner by a BufferedReader like so:. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to count lines in a netbeans project Ask Question. Asked 9 years, 5 months ago. Active 3 months ago. Viewed 40k times. Improve this question. I was able to successfully use wordcount with NetBeans 7.

Haven't received registration validation E-mail? User Control Panel Log out. Forums Posts Latest Posts. View More. Recent Blog Posts. Unread PMs. Forum Themes Elegant Mobile. Essentials Only Full Version. Super Member. Thank you. Starting Member. I don't think there is a tool to calculate that. A Guy on the Net. Jim Nickerson. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 10 years ago. Active 4 years, 5 months ago. Viewed 4k times. Improve this question.

Paul Roub Does anyone know how to count the lines? You can use wordcount that works with 7. You have to change Accept filename if you want other files than Java and Groovy to match. To display stats click on WordCounting second button.

I will display the stats of the directory selected in Projects window it has to be a package or something like Source Packages or Web pages, it won't work if you select the project. I know this is a very old question however there is a simpler way of finding the line count in a netbeans project that doesn't involve installing plugins:.

Note: In NetBeans, the search is stopped after results, so if your project is longer than that then this method won't work.



0コメント

  • 1000 / 1000