Configure eclipse to automatically comment

1. Eclipse supports our custom templates, such as file comments, class comments, function comments and other functions.

Eclipse itself has its own template, and we can also define it ourselves.

One click: windows-"preference-"java-"code style-"code template,

The interface shown below will pop up.

2. Click the import button in the image above to select your custom template. See Figure 1 below. The red box is the code template I want to upload. Click OK to import.

3. After the import is successful, click the comments option to view comments in different locations, such as file comments, variable comments, and function comments.

The display style is displayed in the text box below the Pattern. Note that it can only be viewed and cannot be modified.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325024553&siteId=291194637