Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Eclipse 3.5 PDT, how do I stop it from automatically converting <? into <?php ?>?

I just upgraded to Eclipse 3.5 PDT, and everytime I type <?, it converts it into <?php ?>. How do I turn that off?

like image 785
davethegr8 Avatar asked Aug 12 '09 21:08

davethegr8


People also ask

Does Eclipse work for PHP?

The Eclipse 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.


1 Answers

If you want to turn it off, it's under

Preferences -> PHP -> Editor -> Typing -> Close PHP Tag (?>)

It really is a best practice to use full <?php open tags however.

like image 123
zombat Avatar answered Nov 15 '22 05:11

zombat