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.
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 ).
We have to have this display,
You need to remove the "(AND) ..." filter, which is added automatically. Select it, click on “remove” and save.