Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse PDT Intellisense for PHP functions

So the intellisense works for my own variables, methods, etc. but doesn't work for php functions like in_array... I'm just opening a single PHP file instead of creating a project. It works when I create a PHP project and create a php file inside that project. But doesn't work when opening individual php files.

VS.Php for VS2010 has intellisense for php functions when I just open a single php file. I'd like to emulate this functionality in Eclipse. Does anyone know how to make Eclipse PDT show php functions when opening a file?

Thanks.

like image 455
Jack Avatar asked Apr 09 '12 06:04

Jack


People also ask

What is eclipse PHP IDE?

Eclipse PHP Development Tools. About. The PHP IDE project delivers a PHP Integrated Development Environment framework for the Eclipse platform. This project encompasses the development components necessary to develop PHP-based Web Applications and facilitates extensibility.

How to extend the experience of developing PHP applications with PDT?

The experience of developing PHP application with PDT can be extended with a large variety of plugins created by the Eclipse ecosystem. Below are open source projects and commercial products that are built on top of PDT or are integrated with PDT.

What is eclipse PHP development tool?

Eclipse PHP Development Tools 1 About. The PHP IDE project delivers a PHP Integrated Development Environment framework for the Eclipse platform. 2 Features 3 Download. The essential starting point for PHP developers, including a PHP language support, a Git client, XML Editor and Mylyn, Terminal. 4 Extensions. ... 5 Contributing. ...

How do I use autoloading with PDT IntelliSense?

When dependencies are installed, the Composer tooling scans the “autoload” section of the project’s composer.json file and adds all declared namespaces to the project’s build path. The same is done recursively for all project’s dependencies. This way all autoloading classes are indexed and available to the PDT intellisense features.


2 Answers

Have you tryed netbeans for PHP? I've developed the past 2 years with netbeans+apache+php5+MySQL+MongoDB and used Netbeans all along on Ubuntu machines. The only thing it lacks at the moment is the code completion (intellisense) for the Mongo objects. Other then that it reads your code and complete PHP functions as well. And it's built on top of Eclipse (or at least derived from Eclipse). I think it's everything you're looking for.

Cheers

like image 158
Ricardo Owl Avatar answered Sep 26 '22 06:09

Ricardo Owl


With Eclipse / Netbeans, you cannot have autocompletion on a single file without a project.

I use Notepad++ : in order to activate autocompletion go to "Settings" > "Preferences" > "Backup/Autocompletion" tab and check the option.

like image 24
adrien Avatar answered Sep 22 '22 06:09

adrien