Skip to main content
PHP editor : Eclipse IDE

Eclipse is a popular integrated development environment for the Java virtual machine. While Eclipse PDT stands for PHP Developer Tools, it is also compatible with several other programming languages.

For PHP development, we recommend its use.
 

Adding Drupal-specific extensions

Drupal includes files that are not recognized by eclipse, such as *.module, *.theme, *.profile, *.inc. We need to add these files.
In the eclipse editor, select “windows -> preference” :



Follow the steps described in the image to add the extensions.

Formatting definition :

You need to download eclipse-drupal. CThis folder contains the file “eclipse_drupal_coding_standards.xml”, which contains formatting propagated by edutrul.
Import this file :


Then save the configuration.
 

How do I exclude a directory in eclipse?

Right-click on the project (in the project explorer tab) and click on properties.



eclipse

Click on "add groups" :


Then add the directory to be excluded by clicking on "Add filter".( in our case, we want to exclude  node_modules ).
eclipse exclure node_modules

We have to have this display,


You need to remove the "(AND) ..." filter, which is added automatically. Select it, click on “remove” and save.
 

Profile picture for user admin Stephane K

Écrit le

Il y'a 1 year
Modifié
Il y'a 2 weeks
Loading ...
WhatsApp
Support Habeuk : +237 694 900 622
WhatsApp Send