This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I need a new refactoring feature for PHP IDE: "Extract method" Use case: 1. User having a some code in method/function and would like to extract some common functionality to new method. 2. User selects some lines which must be extracted, and call "extract method" feature. 3. IDE asks method name from user and confirm new method parameters 4. User confirms all. 5. IDE extracts code to new method. Similar functionality implemented in ReSharper for C# (MSVS), but I would like having same in NetBeans for PHP.
batch reassigning
The "Introduce Method" refactoring already available in Netbeans for Java is pretty much perfect for me: http://azizlp.blogspot.com/2007/08/netbeans-refactor-part-1.html
It would be really nice to have actual code refactoring features for php in an open source IDE.
Any news an this one? When I saw that it was marked "target milestone = next" back in April, I thought it will be in 7.2. Still I can't find any new PHP refactoring in the nightly build.
there anybody? it's a very important feature for IDE
I plan to implement some new refactorings, but it's no time for 7.3. So probably it will be in some of later releases.
+1 It's a must have feature!
This feature is really important and highly demanded. Please implement it soon.
+1 Missing that feature
Any progress on this one? It's been 3 and a half years since it was reported...
Just go use PhpStorm... You will die waiting with this pace of development.
And that feature is already implemented for Java files...
It might be easiest for Netbeans to act as a front end to this project: https://github.com/QafooLabs/php-refactoring-browser which impliments some refactoring features on the command line.
+1 This is a must have feature for modern PHP coding. NetBeans is adding support for many modern PHP frameworks to attract users. It will need to add features like these to actually retain those users.
+1 Please go for it!
+1
Don't write those "+1" comments, use the vote link next to the priority. +1 comments have no relevance. Or just go download PhpStorm, as has been said...
@VaclavSir: ok, did it, thx. P.S.: Kind of odd to recommend PHPStorm twice in this Bug...
What is status of this? I have 8.0.1 but still PHP refactoring is very poor. In 8.0.2 changelog nothing about PHP refactoring is mentioned.
For all people that need "extract method" feature. NetBeans has other awesome feature that you can use instead : php templates with parameter hint. you can easily surround selected code with function template declaration and even add your custom templates. If you are not familiar with this feature, I strongly recommend to read about it here: 1.https://netbeans.org/kb/docs/php/code-templates.html?print=yes#surround-code 2.https://netbeans.org/kb/docs/php/code-templates.html?print=yes#z-action Try it NOW (works in NB > 7.3): 1.select the code you want to extract. 2.press alt+enter, select "Surround with public function" from hint dialog menu. Happy coding!
PhpStorm has it. Why not NetBeans? This is most usefull feature ever. Please make it :)
> Nowaker 2013-10-20 11:55:27 UTC > Just go use PhpStorm... You will die waiting with this pace of development. Told you!
(In reply to michaelleb from comment #21) > For all people that need "extract method" feature. NetBeans has other > awesome feature that you can use instead : > > php templates with parameter hint. > > you can easily surround selected code with function template declaration and > even > add your custom templates. > If you are not familiar with this feature, I strongly recommend to read > about it here: > > 1.https://netbeans.org/kb/docs/php/code-templates.html?print=yes#surround- > code > > 2.https://netbeans.org/kb/docs/php/code-templates.html?print=yes#z-action > > Try it NOW (works in NB > 7.3): > 1.select the code you want to extract. > 2.press alt+enter, select "Surround with public function" from hint dialog > menu. > > Happy coding! thank You for this advice! I would prefer extraction, but still - better than nothing :)
Nicely you explained here all the detail regarding Extract method. Anyone can easily understand it and implement it specially IT learners. Caroline, Professional personal statement writer, who design marketing personal statement - http://www.personalstatementfolks.co.uk/marketing-personal-statement/ using UCAS guidelines at Personal Statement Folks in UK.
Netbeans is open source which is quickly and simply develop desktop, mobile, and web applications with Java, JavaScript, HTML5, PHP, C/C++ and more. Amazed to knowing about it and also forward details of Netbeans with more people at Quality Dissertation. Jack, At Quality Dissertation, happily assist UK students by providing nursing assignment help - http://www.qualitydissertation.co.uk/nursing-assignment-help with pass guarantee.