高浩 created NETBEANS-4630: ---------------------------- Summary: 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: 11.3, 12.0 Reporter: 高浩
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