简体   繁体   中英

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

I'm looking for the "Highlight code -> right-click -> Extract Method" type of functionality I see in Eclipse Java. Does this exist for PHP?

I'm using Zend Studio 7, which is also an Eclipse product, and I can see that option through the "refactor" submenu

Highlight code -> right-click -> Refactor -> Extract Method

Not sure if PHP Eclipse has the same thing.

No, most of the refactoring functionality does not work for PHP in Eclipse with PDT. I assume it's because PHP is so much more dynamically typed than Java.

Zend Studio, which is Eclipse with some other extensions has more PHP features, but it will cost you a few hundred bucks.

hum, having been one of the phpeclipse developers, the only thing I can say is that: it has never been implemented... refactoring in Java's JDT is a large piece of non-trivial code! doing the same in PHp is even less trivial

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM