Why are there no refactoring tools in PHP Eclipse? Do I need to install something?

I am looking for the code code for the function "Select code → right-click → Extract method" that I see in Eclipse Java. Does this exist for PHP?

+3
source share
3 answers

I use Zend Studio 7, which is also an Eclipse product, and I see this option through the "refactor" submenu

Highlight code -> right-click -> Reactor -> Extract method

Not sure if PHP Eclipse has the same thing.

+2
source

No, most refactoring functions do not work for PHP in Eclipse with PDT. I guess because PHP is much more dynamically typed than Java.

Zend Studio, Eclipse , PHP, .

+1

hum, being one of the developers of phpeclipse, the only thing I can say is that: it has never been implemented ... Refactoring in Java JDT is most of the non-trivial code! doing the same thing in PHp is even less trivial

+1
source

Source: https://habr.com/ru/post/1737337/


All Articles