Community
Participate
Working Groups
I want to use custom code template settings, especially for methods. So I'm setting up a custom pattern like this: Window -> Preferences, then PHP -> Code Style -> Code Templates, then Comments -> Methods I check "Automatically add comments for new methods and types". I then edit the pattern for "Methods" to something else, then click apply, then OK. I create a new PHP file, and create a class: <?php class foo { } ?> I navigate to the bracket after foo, press return and type: public function test () { } However, PDT doesn't create a comment. I can trigger the code template by typing /** above the new method, but it is a standard template, not the custom template I entered. I made sure that I don't have any project specific settings for my demo project. -- Configuration Details -- Product: Eclipse 1.3.0.20100617-0520 (org.eclipse.epp.package.php.product) Installed Features: org.eclipse.platform 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY
duplicate *** This bug has been marked as a duplicate of bug 274992 ***
This is not really a duplicate. Please ignore the information regarding "Automatically add comments for new methods and types". Eclipse does completely ignore every setting I do in that dialog. If I change the template, Eclipse does not respect the changed template.
If I change the template, Eclipse does not respect the changed template. this is already fixed in the latest code
Is a downloadable release already done, or do I need to wait until the next release?
I am not sure when there will be a new release ,sorry for this.
Is there any chance to test this fix without building PDT from source?
Tested according required behavior described in Comment 2 Verified. The requirement regarding to "Automatically add comments for new methods and types" is duplicate (bug 274992) Closing...