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.
1) Create a py file 2) In the editor right click and select insert code action and select constructor 3) It will insert code for constructor but it heilights the parameter as well as its colan for refactor rename see the screen shot build 78
Created attachment 72278 [details] screen shot
It's actually highlighting the comma before the parameter so starting typing will result in missing the comma.
This was sort of on purpose - here's the code template: <code>def __init__(self${1 default=", parameters"}): """${Documentation}""" ${cursor}</code> As you can see, I included the "," in the code template parameter rather than outside like this: <code>def __init__(self, ${1 default="parameters"}): """${Documentation}""" ${cursor}</code> because I want to make it trivial to -delete- the proposed parameter if you don't want it. The root problem here is that NetBeans doesn't have nested parameters the way TextMate does. If it did, I would make ", parameter" the outer part you can either edit or delete, and if you tab into it, you'd edit just the parameter. As it is, it's all or nothing, and having to delete the space and comma manually seems annoying, whereas typing ", next" seems okay (after all, if you want 2 or more parameters, you also have to type the comma yourself).
Templates are still partially broken on the current release but for different reasons. Closing this as old bug. If this is still a thing, please reopen and accept my apologies.
Thanks for your evaluation Julien. Reporter, if you think your issue is still valid and needs to be addressed, don't hesitate to reopen it with additional information. Closing for now.