public class Tongjidaima { private static int i;//代码总行数 private static int j;//文件个数 public static void main(String[] args) throws IOException { File file = new File("F:\\eclipsework\\Zhansen");//需要统计行数的文件夹路径 traverseFiles(file);//调用递归方法查看.java文件
using UnityEngine; using System.Collections; using UnityEditor; using System.Collections.Generic; using System.IO; /// <summary> /// 统计工程内的代码行数 /// </summary> public class CodeCounter { [MenuItem("Tools/统计工程内的代码行数")] public static vo