Home >Java >javaTutorial >How to set up eclipse auto-completion

How to set up eclipse auto-completion

百草
百草Original
2024-01-25 13:34:023082browse

Steps to set up eclipse auto-completion: 1. Turn on auto-completion; 2. Set up completion suggestions; 3. Customize auto-completion suggestions; 4. Set up auto-completion shortcut keys; 5. Other personalities settings; 6. Save and close. Detailed introduction: 1. Turn on automatic completion, select Window -> Preferences on the Eclipse menu bar, in the pop-up dialog box, expand the Java option, select Editor -> Content Assist, etc. in the tab on the right.

How to set up eclipse auto-completion

The operating system for this tutorial: Windows 10 system, DELL G3 computer.

Eclipse’s auto-completion function can be personalized according to personal programming habits and styles. The following are some common settings steps:

1. Turn on auto-completion:

  • Select Window -> Preferences on the Eclipse menu bar.
  • In the pop-up dialog box, expand the Java option and select Editor -> Content Assist.
  • In the tab on the right, check the Enable auto activation checkbox and set the delay time for automatic completion.

2. Set up completion proposals:

  • In the Content Assist page, expand the Advanced option and select Proposals.
  • Here, you can set the priority and type of various auto-complete suggestions, such as setting which keywords should be completed.

3. Customize auto-complete suggestions:

  • You can add or delete auto-complete suggestions. Select the proposal you want to modify and click the Edit button.
  • In the pop-up dialog box, you can edit the proposed name, description, category, etc.

4. Set the auto-complete shortcut key:

  • In the Preferences dialog box, expand General -> Keys.
  • Here, you can set a shortcut key for the auto-complete function, such as Ctrl Space.

5. Other personalized settings:

  • You can also set other options related to auto-completion in the Preferences dialog box, such as Set whether to display prompts when typing, or set the duration of prompts, etc.

6. Save and close:

  • After completing all settings, click the Apply and Close button to save and close the dialog box.

Through the above steps, you can personalize Eclipse's auto-completion function according to your own programming habits and style. Please note that these steps may vary slightly with different versions of Eclipse. If you are using a newer version of Eclipse, the interface and options may be different.

The above is the detailed content of How to set up eclipse auto-completion. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn