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 - Automatic "use FQN" at the beginning of the file
Summary: Automatic "use FQN" at the beginning of the file
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: issues@php
URL:
Keywords:
: 269924 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-03-16 09:22 UTC by gianluca.ferrantelli
Modified: 2017-05-20 09:42 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***