[ 
https://issues.apache.org/jira/browse/NETBEANS-390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16602668#comment-16602668
 ] 

Alexander Graf edited comment on NETBEANS-390 at 9/4/18 6:58 AM:
-----------------------------------------------------------------

OK, I see. So the difference is when the completion is initiated, correct? Can 
you give an example how postfix completion is more productive than templates? 
Just to convince me and others to vote for this feature. I currently don't see 
an improvement, because the two features look similar. As I understand it, this 
is what you would type:
* if.cond<tab> (for postfix)
* if<tab>cond<enter> (for code template; note that the cursor is automatically 
moved to type the condition)

Both variants have the exact same number of key strokes. How is postfix better? 
Or is it just a matter of taste? (Which of course would be a fine argument for 
a feature request, too; Don't get me wrong.)


was (Author: alibabashack):
OK, I see. So the difference is when the completion is initiated, correct? Can 
you give an example how postfix completion is more productive than templates? 
Just to convince me and others to vote for this feature. I currently don't see 
an improvement, because the two features look similar. As I understand it, this 
is what you would type:
* if.cond<tab> (for postfix)
* if<tab>cond<enter> (for code template; note that the cursor is automatically 
moved to type the condition)
Both variants have the exact same number of key strokes. How is postfix better? 
Or is it just a matter of taste? (Which of course would be a fine argument for 
a feature request, too; Don't get me wrong.)

> Please add postfix completion
> -----------------------------
>
>                 Key: NETBEANS-390
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-390
>             Project: NetBeans
>          Issue Type: New Feature
>          Components: cnd - Code Completion, editor - Completion &amp; 
> Templates, editor - CSL (API &amp; infrastructure)
>    Affects Versions: Next
>            Reporter: Christian Lenz
>            Priority: Major
>
> It would be great, if we can have postfix completion like in IntelliJ:
> `myValue.if -> see code completion or not -> tab or enter on the right 
> suggestion`
> will expand to:
> {code:java}
> if(myValue) {
> }
> {code}
> This feature should be specified for each language that NetBeans supports, 
> because it is needed for most of such languages, but I will create sub tasks 
> for them too.
> Cheers
> Chris



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to