You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "高浩 (Jira)" <ji...@apache.org> on 2020/07/24 18:32:00 UTC
[jira] [Created] (NETBEANS-4630) Remove semicolon of Code Templates
when inserted into Java lambda expression body
高浩 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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists