[ https://issues.apache.org/jira/browse/NETBEANS-4630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
高浩 updated NETBEANS-4630: ------------------------- Description: For Java lambda function body which has no enclose braces({}) , it would be better to remove the semicolon of inserted Code Templates. Given the code(character ^ indicates the position of cursor): {code:java} strList.forEach(s -> sout^); {code} After invoking code completion at the cursor, the code template is insert into the Editor: {code:java} strList.forEach(s -> System.out.println("");); {code} The first semicolon is redundant. It would be better to remove the semicolon automatically. was: For Java lambda function body which has no enclose braces({}) , it would be better to remove the semicolon of inserted Code Templates. Given the code(character ^ indicates the position of cursor): {code:java} strList.forEach(s -> sout^); {code} After invoking code completion at the cursor, the code template is insert into the Editor: {code:java} strList.forEach(s -> System.out.println("");); {code} The first semicolon is redundant. It would be better to remove the semicolon automatically. > Remove semicolon of Code Templates when inserted into Java lambda expression > body > --------------------------------------------------------------------------------- > > Key: NETBEANS-4630 > URL: https://issues.apache.org/jira/browse/NETBEANS-4630 > Project: NetBeans > Issue Type: Improvement > Components: editor - Completion & Templates > Affects Versions: 12.0, 11.3 > Reporter: 高浩 > Priority: Major > > For Java lambda function body which has no enclose braces({}) , it would be > better to remove the semicolon of inserted Code Templates. > > Given the code(character ^ indicates the position of cursor): > {code:java} > strList.forEach(s -> sout^); > {code} > After invoking code completion at the cursor, the code template is insert > into the Editor: > {code:java} > strList.forEach(s -> System.out.println("");); > {code} > The first semicolon is redundant. > > It would be better to remove the semicolon automatically. > > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- 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