Download
http://www.oracle.com/technetwork/java/javase/downloads/index.html Download JDK,Eclipse installation requires JDK environment ;
http://www.eclipse.org/downloads/ download Eclipse IDE for Java EE Developers This version can automatically prompt Html/js code;
http://sourceforge.net/projects/phpeclipse/ Download the PHP plugin for eclipse
Installation
1. Install the JDK first.
2. Download the Eclipse package to extract an Eclipse folder and put it under the D disk (any directory can be);
3. Download the PHP plugin, unzip, copy the file to the corresponding directory of the D:\eclipse folder.
Configure PHP automatic prompt code (HTML/JS and PHP method)
1. Open the Window, Preferences, PHPEclipse, Windows--PHP---Code Assist
Open the inside of the Enable Auto activation option, there is an auto activation triggers for PHP, the following default value is "$>", change it casually,
For example, change to 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 is ready to use.
Javascript Auto tip: Javascript→editor→content Assist
Modify the value of auto Activation triggers for JavaScript to: ZJS Click the Apply button
Html automatic hint: web→html files→editor→content Assist
Modify prompt when these characters is inserted: The value is: zhtml Click the Apply button
Export the changes and then go in it OK! With php!
Then find Zjs and change its value to. ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVW
Then find zhtml and change its value to <=.ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVW
Other than that:
Let eclipse always show line numbers: Preferences->phpeclipse Web development->php-> on the right tick on show lines numbers
Change the font display style and size of the PHP file:
Wiondow--preferences--general--appearance--colors and fonts--php eidtr ... Double-click
Change the display style and size of other file fonts:
Wiondow--preferences--general--appearance--colors and Fonts--terminal console ... Double-click
Optimize eclipse
1. Modify the Eclipse memory configuration
Edit the eclipse.ini file under the Eclipse installation root and add the following snippet at the end of the file:
-xms512m
-xmx512m
-xx:permsize=128m
-xx:maxpermsize=128m
-xmn168m
-xx:+disableexplicitgc
-xms512m and-xmx512m are the Java virtual machine memory that the Java program uses to run or debug after Eclipse starts, The previous is the memory space that is initialized when the virtual machine starts, and the latter is the maximum memory space used by the virtual machine. The two are set to the same size, avoiding The need to adjust the memory space during the Java program to improve speed. If your computer has enough memory, such as 2G of memory, and you do not need to run other memory-occupying software, then You can adjust it to 1024M.
2. Canceling automatic folding of Java code
Window->preferences->phpeclipse->php->editor->folding: Uncheck Enable folding. The default Eclipse is selected, and the left side of the Java code class, method, comment, and so on, will have an icon for the collection / expansion, You can shrink a section of the corresponding range of code to hide.
4. Cancel Word spelling Verification
Window->preferences->general->editor->text editors->spelling: uncheck enable spell Checking. By default, the word spelling verification is equivalent to word validation, avoids typing the wrong words, the actual related variables and methods are not commonly used complete words, so the validation is not very meaningful.
5. Remove the load project that Eclipse does not have to start
window->preferences->general-> Startup and Shutdown: Remove most of the startup load gaps. Keep the following selected, if necessary, can be adjusted at any time.
6. Canceling Eclipse Auto-validation
Window->preferences->validation: Cancel The automatic validation of all builds when the file has the wrong function, only the original default Manul (manual validation). When you need to check some configuration files for errors, Select the corresponding file in the project directory that is displayed in the Package Explorer, then right-click the pop-up menu and click validate You can verify the corresponding file
7. Suppress the Aptana Welcome screen when Eclipse starts
Window->preferences->aptana->startup Page: modified to never display after startup, so start Eclipse will not be displayed when Aptana home page. aptant with plug-ins to support JavaScript code writing.
Eclipse Configuration PHP Development environment