In default eclipse, when you press space, equal sign, semicolon and other keys, the text in the prompt box is entered into the edit content, but many times we don't want to enter it, but we can set it as follows.
1. Open Eclipse, Window, perferences
2. Find the Content Assist under Editor under Java, and the option that appears on the right, there is an auto activation triggers for Java:
will see only one "." Exist. Indicates: Only input "." Then there will be code hints.
3, first put in the "." Enter a few random characters, such as "DSFD", and click "OK" at the bottom to save the settings.
4. Open the File-and Export of Eclipse, and in the window, expand general-Perferences-->export
All and then click NEXT. Then click "Browse" to select any one of the paths, save the configuration file, click "Finish"
5, use Notepad to open the configuration file you just saved (extension file name: *.EPF), press "CTRL + F", enter the "DSFD" just set, find
Just a string. Change "DSFD" to "abcdefghijklmnopqrstuvwxyz.", Save
6. Open the File-and Import of Eclipse and then in the open window expand general--perferences, click Next, select the
Changed configuration file, Finish.
Solve the candidate list on the screen key modification (with tab and enter the screen, can be self-changing)
1. First, open Eclipse, open window->show view, select Plug-ins, Find 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, in the import project under the "Org.eclipse.jface.text.contentassist.completionproposalpopup#verifykey ()" function has a section of code
[Java] View plaincopyprint?
If (contains (triggers, key)) {
...
Change this code to
[Java] View plaincopyprint?
if (key!=0x20 && key!= ' = ' && key!= '; ' && contains (triggers, key)) {
...
3, and the code above the Code commented out (after I confirmed that no comments)
4.
[Java] View plaincopyprint?
Case '/t ':
E.doit= false;
Fproposalshell.setfocus ();
return false;
Revision changed to
[Java] View plaincopyprint?
Case ' \ t ':
E.doit= false;
Insertselectedproposalwithmask (E.statemask);
Break
After the above operation, this auxiliary input plug-in has ruled out the space and the "=" check function, added the TAB key check function.
5, the last is to export the modified plug-in, right-click on your workspace project, select Export->deployable Plugins and Fragments, click
Next, select the Destination tab, select Directory, select a directory where you want to save the plugin, and then finish.
6, then will be in your selected directory to create a new plugins directory, there is a jar file, with it to replace the eclipse/plugins inside the
Org.eclipse.jface.text_3.6.1.r361_v20100825-0800.jar (this file is different version of Eclipse, the later version number will not be the same, I use the
Eclipse 3.6), and that's it!