How to count lines of Java code using IntelliJ IDEA?

前端 未结 9 480
慢半拍i
慢半拍i 2020-12-07 09:25

How to count lines of Java code using IntelliJ IDEA?

9条回答
  •  执念已碎
    2020-12-07 09:39

    Although it is not an IntelliJ option, you could use a simple Bash command (if your operating system is Linux/Unix). Go to your source directory and type:

    find . -type f -name '*.java' | xargs cat | wc -l
    

提交回复
热议问题