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.

Bug 270083

Summary: Automatic "use FQN" at the beginning of the file
Product: php Reporter: gianluca.ferrantelli
Component: EditorAssignee: issues@php <issues>
Status: NEW ---    
Severity: normal CC: Cruiser
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description gianluca.ferrantelli 2017-03-16 09:22:43 UTC
Hi guys,

it might be very useful is when I type the NAME of the class, and the Editor open the suggestions popup, when I type ENTER to add the class name, the IDE add the USE {FQN} at the beginning of the file.

So, if I have a class 

\App\Model\UserModel

if I type 

new UserMode...( popup suggestion )

when I select the right suggestion and I type "Enter", at the beginning of the file the IDE should add:

use App\Model\UserModel;

and in the mouse location only 

new UserModel

Thanks in advance!
Comment 1 Cruiser 2017-05-20 09:42:58 UTC
*** Bug 269924 has been marked as a duplicate of this bug. ***