stollr commented on issue #6947: URL: https://github.com/apache/netbeans/issues/6947#issuecomment-1926982191
Thanks for your work on this. To enable this behaviour one has to check "Auto import" in Options -> Editor -> Code Completion -> Language [PHP]. I'd suggest to add a separate checkbox instead of a fourth type of code completion which could be checked to enable automatic import for **smart** and **unqualified** code completion. Because both of these types may benefit from the automatic import ;-) I have tried to create an example how this could look like:  Apart from that, the feature works well. I have only one notice: If the class has a doc block. The import statement is placed between the doc block and the class definition. Better would be, if the import is added below the namespace declaration or at the beginning of the file if there is no namespace declaration. What do you think? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
