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 268888

Summary: Please add postfix completion
Product: javascript Reporter: Christian Lenz <chrizzly>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: CLOSED INVALID    
Severity: normal CC: mmetelka
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Other   
Issue Type: ENHANCEMENT Exception Reporter:

Description Christian Lenz 2016-11-08 09:51:15 UTC
As you can see in WebStorm it is possible to write "test".log->tab will expand to console.log("test"); It is called postfix completion.

https://blog.jetbrains.com/webstorm/2014/08/javascript-postfix-completion/

It is really handy to have it in netbeans too.


Regards

Chris
Comment 1 Petr Pisl 2016-11-14 15:35:04 UTC
Milo, do we have something like this in NetBeans?
Comment 2 Christian Lenz 2016-11-14 15:41:02 UTC
May I can give a hint, unfortunately not, I created tickets for the Java, PHP and C/C++ editor.
Comment 3 Christian Lenz 2016-11-14 15:41:15 UTC
(In reply to ChrisLE from comment #2)
> May I can give a hint, unfortunately not, I created tickets for the Java,
> PHP and C/C++ editor.

AFAIK
Comment 4 Petr Pisl 2016-11-14 22:16:21 UTC
IMHO at first it should be supported in an infrastructure (CSL, which covers html, javascript, php, csl etc) or in the editor itself (java, c++ and other languages that are not implementing CSL). Then the languages should implement the prepared api/spi.

I can implement it directly in javascript, but it's not the right solution.
Comment 5 Christian Lenz 2018-02-15 16:54:55 UTC
I will close it, because it will handled now at the JIRA board: https://issues.apache.org/jira/browse/NETBEANS-392. Please discuss it there for further information.