🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
注:最好下载eclipseforphp版,不然之后要学习flask时,连个html编辑器都没有。 1、官方下载:http://download.eclipse.org/ 2、版本:eclipse-php-oxygen-R-win32.zip 选择它的原因是解压就可以用。 3、解压、打开即可,前提是你装了java jre eclipse对java是有版本要求的,oxygen版至少要1.8版本的。 4、机子上装的是jre1.6的,还不让升极,怎办: 办法是下载java jre的解解压版; 5、解压版在官网上下载:jre-8u144-windows-i586.tar.g 解压到某个文件夹下:如D:\Program Files\java\jre1.8.0_144 6、要启动eclipse,还需要配置一下,找到eclipse.ini文件,打开配置一下: 注意是第1、17、18行加入这三行内容 ~~~ 1. * D:\Program Files\java\jre1.8.0_144\bin\java.exe 2. * -startup 3. * plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar 4. * --launcher.library 5. * plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.500.v20170531-1133 6. * -product 7. * org.eclipse.epp.package.php.product 8. * -showsplash 9. * org.eclipse.epp.package.common 10. * --launcher.defaultAction 11. * openFile 12. * --launcher.defaultAction 13. * openFile 14. * --launcher.appendVmargs 15. * -vm 16. * D:\Program Files\java\jre1.8.0_144\bin 17. * -vmargs 18. * -Dosgi.requiredJavaVersion=1.8 19. * -Dosgi.instance.area.default=@user.home/eclipse-workspace 20. * -XX:+UseG1GC 21. * -XX:+UseStringDeduplication 22. * -Dosgi.requiredJavaVersion=1.8 23. * -Xms256m 24. * -Xmx1024m ~~~ 7、打开eclipse,运行成功 8、文件编码格式配置:windows->preferences->general->workspace->text file encoding->utf-8->apply。 9、编辑器字体:windows->preferences->general->Colors and Fonts->Basic->Text Font->Edit。 推荐用courier new ,推荐的人较多。还可以。