Eclipse usage and tip 13: automatically generated todo annotation 1

Source: Internet
Author: User

The automatically generated code using the eclipse shortcut key often has such annotations.

At a glance, this comment is no different from the general comment, but the todo string has different colors and should have some content. Todo is a task label provided by eclipse to mark some tasks to be done. Let's take a look at the labels in Eclipse:
Step 1: window-> preference-> JAVA-> complier-> task tags

You can see that these labels can be configured by the user. There are three priorities: High, General, and low. The dialog box contains a tag that is case sensitive. It is checked by default. If you do not like these automatically generated tags, you can remove them by yourself:
Step 1: window-> preference-> JAVA-> code style-> code templates

Step 2: code-> method body, select edit, and delete the line "// $ {todo} auto-generated method stub ".

 

 

 


In the previous article, eclipse usage and tips 12: quickly copy a line:
Http://blog.csdn.net/ts1122/article/details/8977670
In the next article, eclipse 14: automatically generated todo annotations 2:

Http://blog.csdn.net/ts1122/article/details/9018907

Related Article

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.