Automatic placement of author, comment date and other shortcut key methods in MyEclipse

Source: Internet
Author: User

Shortcut key methods for automatically inserting authors, comment dates, and so on in MyEclipse

MyEclipse automatically insert author, comment date, and so on the De shortcut key method opens and then finds

Window-->preferences->java->editor->templates ,
Here's a shortcut name for your own insert comment, which is set as follows:
Enter remark (any name you like) at name
Select the Automatically insert check box in the context of Java
Description can enter any description here
Pattern:(custom format)
/**
* @author ${user}
* @date: ${date} ${time}
*/

All set up here, OK, find a Java class, find a blank place to test, enter the remark (the name that was written earlier),
Again alt+/
should click to see the content of the description just now.
Note that if the previous context selected Javadoc, then alt+/and then press/to come out.

Shortcut key methods such as author, comment date, etc. are automatically inserted in the MyEclipse

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.