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 270319

Summary: Please add feature to fix imports for modules
Product: javascript Reporter: Christian Lenz <chrizzly>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Other   
Issue Type: ENHANCEMENT Exception Reporter:

Description Christian Lenz 2017-04-07 07:19:51 UTC
When I use my class "MyStuffClass" from a exported module and I type MyStuffClass in an file, the JS editor should be context aware and first should show me ah hey i found MyStuffClass and it is in this module MyStuffModule.js. When I hit enter it should write MyStuffClass and add an import at the beginning of the file, like in Java. If I write it down, without using code completion, then there should be an option to fix imports for all and for the specific one, when I select the class and hit alt + enter.


Regards

Chris