User Tools

Site Tools


php:eclipsepdt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
php:eclipsepdt [2014/06/05 14:49] – [Config to recognize drupal files] adminphp:eclipsepdt [2022/10/29 16:15] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Eclipse PDT(PHP Development Tool) ====== ====== Eclipse PDT(PHP Development Tool) ======
 +===== Install with Eclipse Available =====
 +  - Step1: Download and Install **Eclipse EE** from https://eclipse.org/downloads/. You must specify java version on your computer to download eclipse 32bits(java 32bits) or 64bit(java 64bits)(You should install **Eclipse 3.6 32bits** to install hibernate tool and run with java 32bits)
 +  - Step2: In Eclipse, click **Help -> Install New Software** and work with: http://download.eclipse.org/tools/pdt/updates/3.5
 ===== Basic Config ===== ===== Basic Config =====
 ==== Show some basic windows in Eclipse PDT ==== ==== Show some basic windows in Eclipse PDT ====
Line 22: Line 25:
   * Ensure that spaces are used instead of tabs: Expand left menu to  **General -> Editors -> Text Editors**   * Ensure that spaces are used instead of tabs: Expand left menu to  **General -> Editors -> Text Editors**
       * Check **//Insert spaces for tabs//**       * Check **//Insert spaces for tabs//**
-      * Change **//Displayed Tab Width//**: 2+      * Change **//Displayed Tab Width//**: 4
   * Removing trailing whitespaces: Click left menu **PHP->Editor->Save Actions**: check **//Remove trailing whitespace//** and select **//All lines//**   * Removing trailing whitespaces: Click left menu **PHP->Editor->Save Actions**: check **//Remove trailing whitespace//** and select **//All lines//**
 ==== Config to editor Drupal ==== ==== Config to editor Drupal ====
Line 30: Line 33:
       * Under **Window -> Preferences**, Expand left menu to **General -> Editors -> File Associations**. Under **File Associations** on the right click '**content type**', Add add the *.engine, *.theme, *.install, *.inc, *.make (for Drush make files), *.module, *.profile and *.test in **"PHP Content Type"**       * Under **Window -> Preferences**, Expand left menu to **General -> Editors -> File Associations**. Under **File Associations** on the right click '**content type**', Add add the *.engine, *.theme, *.install, *.inc, *.make (for Drush make files), *.module, *.profile and *.test in **"PHP Content Type"**
 === Import drupal project === === Import drupal project ===
 +Under menu **File->New->PHP Project from Existing Directory**
 +==== Config Editor for zend framework ====
 +=== Config to recognize zend framework files ===
 +  * Step1: config [[#common_config_for_php|common config for PHP]]
 +  * Step2: config zend framework file types are recognized as PHP files:
 +      * Under **Window -> Preferences**, Expand left menu to **General -> Editors -> File Associations**. Under **File Associations** on the right click '**content type**', Add add the *.php, *.phtml in **"PHP Content Type"**
 +=== Import zend framework project ===
 Under menu **File->New->PHP Project from Existing Directory** Under menu **File->New->PHP Project from Existing Directory**
 ===== Config debug PHP ===== ===== Config debug PHP =====
php/eclipsepdt.1401979792.txt.gz · Last modified: 2022/10/29 16:15 (external edit)