Self-made Xcode plug-in-XcodeCareer: counts the number of lines and durations of real input code, xcodexcodecareer

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.