Extended eclipsephp code prompt function

Source: Internet
Author: User
Extension of eclipsephp code prompt function PHPeclipse plug-in: sourceforge. netprojectshowfiles. php? Automatic prompt function of group_id57621php: 1. open the Window-& gt; Preferences-& gt; PHPeclipse-& gt; PHP-& g of Eclipse php.
PHPeclipse plug-in: http://sourceforge.net/project/showfiles.php? Group_id = 57621


Php automatic prompt function:
1. open the Window in Eclipse> Preferences> PHPeclipse> PHP> Code Assist to open the Enable auto activation option. Below is an Auto activation triggers for PHP, the default value is "$>". change it as needed, for example, change it to aaaa, then Apply, OK.
2. Export the current preference configuration File: open Eclipse's File-> Export, expand General-> Perferences --> Export all in the window, and then click NEXT. Click "Browse" to select any path, save the configuration file, and click "Finish ".

3. use Notepad to open the saved configuration file (extension File name :*. epf), press "ctrl + F", and enter "aaaa", followed by the string "content?autoactivationtriggersphp" (or possibly content_assist_autoactivation_triggers_php. Change "aaaa" (this is the value just entered, that is, the value after =) to "$:>. abcdefghijklmnopqrstuvwxyz ("(the code prompts automatically after all the symbols are entered in the code, because Eclipse allows only four custom characters by default, so this can bypass this restriction ), save and exit notepad.

4. re-Import the modified preference configuration File: open Eclipse's File-> Import, expand General-> Perferences in the open window, click NEXT, and select the modified configuration File, finish.

5. restart Eclipse.

//////////////////////////////////////// /////////////////

Alt +/. two things are required.
1. for windows --> preference --> workbench --> keys, set the Content Assist shortcut key.
2. change the wordcomletion shortcut key in windows --> preference --> workbench --> keys to another one.

If you still do not prompt, it may be that the prompt function is disabled.
Do the following:
1. choose window> Preferences> Java> Editor> Content Assist> Enable auto activation.

Check
2. window> Preferences> Java> Editor> Content Assist> Select

The proposal kinds contained in the 'default' content assist list:

You can check the Proposals option.




In fact, the code prompt function in Eclipse and MyEclipse code is normal by default.

Click ".". generally, a code prompt is displayed only when "." is clicked.

Principle: the "Auto Activation triggers for java" option refers to the option that triggers the code prompt.

Change ". abcdefghijklmnopqrstuvwxyz (," to indicate that 26 letters and. are encountered. (these symbols trigger code

Function. (Rest assured, as mentioned later)


Enhance the code prompt function of Eclipse and MyEclipse. how can I configure it? The following describes the procedure (note that

MyEclipse 6.0.1 ):


1. open MyEclipse 6.0.1, and then "window" → "Preferences"


2. select "java", expand, "Editor", and select "Content Assist ".

3. select "Content Assist" and then see "Auto" under "Auto-Activation" on the right.

Activation triggers for java "option. In fact, it refers to the "." symbol that triggers the code prompt.


4. the "Auto Activation triggers for java" option should be followed by an abc letter after "." to facilitate subsequent search

Modify. Then, "apply" and click "OK ".


5. Then, select "File"> "Export", select "Perferences" in the pop-up window, and click "next ".


6. select the export file path, export it to the desktop, enter "test" as the file name, and click "save ".


7. find the file "test. epf" you just saved on the desktop, right-click and choose "open with Notepad ".


8. you can see a lot of information about configuring MyEclipse 6.0.1.


9. press the "ctrl + F" shortcut key, enter ". abc", and click "find next ".


10. find the configuration information of ". abc" as follows:


As follows:


11. change ". abc" to ". abcdefghijklmnopqrstuvwxyz (,". save and disable "test. epf ".


12. go back to the MyEclipse 6.0.1 interface, "File" → "Import", select "Perferences" in the pop-up window, and click

"Next": Select the modified "test. epf" file, click "open", and click "Finish ". This step and above

The export procedure is similar.


13. finally, of course, the code is tested. Create a project and a class. Enter switch and foreach in the code.

Test. You will immediately find that there are prompts, and there will be a lot of related prompts no matter which letter you typed, very smooth, very good

.


Summary:

The "Auto Activation triggers for java" option refers to the option that triggers code prompts and changes "."

". Abcdefghijklmnopqrstuvwxyz (," refers to the occurrence of 26 letters and. (these symbols trigger code prompts

Yes.

By the way, modify the class name and interface name highlighted in different colors. you can configure it in "java"> "enditor">

"Syntac", expand "java"> "classes" on the right side, check the "Enable" option, and select your preferred color.

Of course there are other related color configurations. Not to mention it. In fact, there are many configurable Preferences.

Things, so that MyEclipse is optimized. Specifically, individual needs to configure according to their personal preferences.


This article from The CSDN blog, reproduced please indicate the source: http://blog.csdn.net/wzgccm/archive/2009/02/05/3863409.aspx

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.