Eclipse cancels auto-input prompt

Source: Internet
Author: User

After setting up the Eclipse Auto prompt, a A-Z will show the prompt, but we need to type enter before entering, and all of the defaults are typed, very mentally retarded, and can be set in the following way.

1. Find the relevant plugin first: Window---show view--plug-ins
Find the plugin org.eclipse.jface.text, right click, select Import as Source project, after the import is complete, you can see this project in your workspace
2. Modify the Code
In the Src/org/eclipse/jface/text/contentassist/completionproposalpopup.java file, find such a line of code
Char[] triggers = T.gettriggercharacter ();
If (contains (Triggers,key))
In that line if judgment, eclipse will determine if key (the key you pressed) is in triggers, and if so, trigger the code on the first line below. So what we're going to do is to exclude the space and the = number:
if (key! = ' = ' && key! = 0x20 &&contains (triggers,key)) {
.........

}
Code changes to this, when prompted to press the space or equal sign, the hint will not fall, will not automatically fill up!!!
3. Export the modified Org.eclipse.jface.text
Right-click on the Org.eclipse.jface.text in your workspace, select Export-->deployable plugins and
Fragments, Next,destination Select
Archive file, and then finish. You can see the generated jar in the zip file and replace it with the same name jar package in the eclipse/plugins.

Note: MyEclipse cannot import the plug-in source project, can download the corresponding version of Eclipse, recompile the plug-in and then overwrite the MyEclipse plug-in can be.
I have a MyEclipse10 modified jar package here. If your version is the same as me, just copy the jar to plugins. After downloading the decompression, there is a modified jar, one is not modified jar, if you want to change the day, the unmodified jar copy back to the line.

Eclipse cancels auto-input prompt

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.