Extending the code hinting capabilities of Eclipse PHP

Source: Internet
Author: User
Extending the code hinting capabilities of Eclipse PHP
PHPEclipse plug-in: http://sourceforge.net/project/showfiles.php?group_id=57621


PHP Auto-prompt function:
1. Open the Enable Auto activation option in Preferences, PHPEclipse, Windows----- Activation triggers for PHP, the default value behind is "$>", change it casually, such as AAAA, then Apply, OK
2. Export the current preferences profile: Open Eclipse's file-and export, expand General-perferences-->export all in the window and click NEXT. Then click "Browse" to select any one of the paths, save the configuration file, then click "Finish".

3. Use Notepad to open the configuration file you just saved (extension file name: *.EPF), press "CTRL + F", enter the "AAAA" just entered, preceded by the string "contentassistautoactivationtriggersphp" (or it could be: content_assist_autoactivation_triggers_php.) Modify the "AAAA" (which is the value you just entered, that is, the value after the = number) to "$:>.abcdefghijklmnopqrstuvwxyz" (that is, the code prompts automatically when all the above symbols are entered in the code, because eclipse only allows 4 custom characters to be entered by default. , so you can bypass this limitation), then save and exit Notepad.

4. Re-import the modified preference profile: Open Eclipse's file-and import and then expand General-perferences in the Open window, click Next, select the configuration file you just modified, Finish.

5. Restart Eclipse.

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

alt+/. Two things need to be done.
Shortcut keys for setting content Assist under 1,windows-->preference-->workbench-->keys
2,windows-->preference-->workbench-->keys set wordcomletion shortcut keys to other.

If you are still not prompted, it is possible that the prompt function has been turned off.
Do as below
1, menu window->preferences->java->editor->content assist->enable Auto activation option to play

Hook up
2. window->preferences->java->editor->content assist->advanced above tab select

The proposal kinds contained in the ' Default ' content Assist list: Middle Java

Proposals the option to tick on it.




In fact, the Code hints feature in Eclipse, MyEclipse code, is the default general

The point is ".", which is usually a point "." Before a code hint is available.

Principle: The "Auto Activation triggers for Java" option refers to the option to trigger the code hint and "."

Change to ". ABCDEFGHIJKLMNOPQRSTUVWXYZ (," means that it encounters 26 letters and.), (these symbols trigger the code to

Display function. (Say it later, rest assured)


Enhanced eclipse, MyEclipse code hints function, specifically how to configure? The following steps are started (note that I use the

MyEclipse 6.0.1 for explanation):


1. Open MyEclipse 6.0.1, then "window" → "Preferences"


2. Select "Java", expand, "Editor", and select "Content Assist".

3. Select "Content Assist" and see the "Auto" under "auto-activation" on the right, right

Activation triggers for Java "this option. Actually, it means "." is the trigger code hint. This symbol.


4. "Auto Activation triggers for Java" option in "." After adding ABC letter, easy to find in the back

Modify. Then "Apply" and click "OK".


5. Then, "File" → "Export", in the pop-up window select "Perferences", click "Next".


6. Select the export file path, I export to the desktop, enter "test" as the file name, click "Save".


7. On the desktop, locate the file "TEST.EPF" that you just saved, and right-select "Open with Notepad."


8. You can see a lot of configuration MyEclipse 6.0.1 information


9. Press "CTRL + F" shortcut key, enter ". ABC" and click "Find Next".


10. Find the configuration information for ". ABC" as follows:


As follows:


11. Change ". abc" to ". ABCDEFGHIJKLMNOPQRSTUVWXYZ (,", Save, Close "TEST.EPF").


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

"Next", select the "TEST.EPF" file that has just been modified, click "Open", click "Finish". This step and the above

The export steps are similar.


13. Finally, of course, the code is tested. Just create a new project and create a new class. In code input Switch,foreach, etc.

Test. You will immediately find that the hint, and no matter which letter will have a lot of relevant hints, very smooth, very square

Will exactly


Summarize:

The "Auto Activation triggers for Java" option refers to the option to trigger the code hint and "." Change into

". ABCDEFGHIJKLMNOPQRSTUVWXYZ (," means that it encounters 26 letters and.), (these symbols trigger the code hinting function

I can do it.

By the way, modify the class name, interface name, etc. to be highlighted in different colors, can be configured in "Java" → "Enditor" →

"Syntac", on the right side expand "java" → "classes", tick "Enable" this option, choose your favorite color.

There are, of course, other related color configurations. Not to mention it in detail. In fact, in the "Preferences" this thing, there are many can be configured

Things, so that myeclipse optimization, specific to each person according to their own personal preferences to configure the


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

  • 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.