I usually create a lot of code templates based on generic pattern(example for i:=0; i<n; i++) then create a shortcut for it in my IDE. If you used IntelliJ, it is called live template.<p>Since I want to optimize further in my work flow, is there any tool to analyze my project's source code. I want to find out the most frequent code templates from a project's source code.