Implementation method of eclipse automatic prompt and automatic completion function

Solve the automatic prompt problem of code:

1. Open eclipse - > window - > preferences

2. Find the content assist in the editor under Java. In the options on the right, there is an auto activation triggers for Java: you will see only one "." Presence. Indicates that only "." can be entered Then there will be code prompt

3. First put the "." in the figure above Enter a few random characters, such as "DSFD", and click "OK" at the bottom to save the settings.

4. Open eclipse file - > export, expand general - > preferences -- > export all in the window, and then click next. Then click "Browse" to select any path, save the configuration file, and click "finish"

5. Open the configuration file (extension file name: *. EPF) just saved with Notepad, press "Ctrl + F", enter the "DSFD" just set, and find the string just now. Modify the "DSFD" to "abcdefghijklmnopqrstuvwxyz.", preservation

6. Open eclipse file - > import, then expand general - > preferences in the open window, click next, select the configuration file just modified, and finish.

Solve the screen key modification of candidate list (it can be modified by tab and enter)

1. First, open eclipse, open window - > show view, select plug ins, and then find org eclipse. jface. Text, right-click and select import as - > source project. After importing, you can see the project in your workspace.

2. Some versions of eclipse plug-ins do not export source code. If the plug-ins you export do not have source code, you need to download the eclipse RCP Version (this version is convenient to modify the source code and can automatically import the source code), and then export to see the source code.

3. There is a piece of code in the "org. Eclipse. Jface. Text. Contentassist. Completionproposalpopup #verifykey()" function under the import project

Change this code to

3. And comment out the code above this code

4. Java code

Change to

After the above operations, the auxiliary input plug-in has excluded the selection function of spaces and "=" and added the selection function of tab key.

5. Finally, export the modified plug-ins, right-click the project in your workspace, select export - > deployable plugins and fragments, click next, select the destination tab, select directory, select a directory to save the plug-ins, and then finish.

6. Then, a new plugins directory will be generated in the directory you choose, with a jar file in it. Use it to replace org. Org in eclipse / plugins eclipse. jface. text_ 3.6. 1.r361_ v20100825-0800. Jar (the version number of this file will be different for different versions of eclipse. I use eclipse 3.6), so it's done!

summary

The above is all about the implementation method of eclipse automatic prompt and automatic completion function. I hope it can help you. If you have any questions, please leave a message. Xiaobian will reply to you in time.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>