Self-made Xcode plug-in-XcodeCareer: counts the number of lines and durations of real input code, xcodexcodecareer
Made a simple Xcode plug-in. The main function is to count the number of lines of code manually entered by the user after the plug-in is installed, as well as the total time of coding. Use the shortcut key Shift + P to view the accumulated data.
Shared to my Github: XcodeCareer
You are welcome to complete the project.
The statistical rules are described as follows:
1. When a project or file is created, the code generated by the system is not counted.
2. When a third-party framework is directly copied to the project (Add New File), the copied code is not counted.
3. Any carriage return key line feed will add a line to the accumulated amount of code. Deleting a row by the Return key reduces the total amount of code by one row.
4. After no code is written in five seconds, the timer is automatically paused. The subsequent time is not counted in the total accumulated time of the Code.
5. After the code is written again, the timer automatically recovers. The subsequent time is counted into the total code accumulation time.
6. switching between editing files, running projects, and shortcut keys to view data will save the current data. Statistics from the last time data is saved to the time before Xcode is exited cannot be saved.