[
https://issues.apache.org/jira/browse/NETBEANS-297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyeonwoo O updated NETBEANS-297:
--------------------------------
Description:
Currently NetBeans doesn't support auto-formatting, and only manual formatting
is possible with format option through shortcut or Right click->Format. So I
suggest auto code formatting like this:
※ Adding auto-format triggers:
* Only to edited lines, not entire code
* Operate when semicolon or enter key is presssed
* Operate when parentheses/braces/brackets are matched (including block header
and internal code lines)
Next, there are some options about blank line +before+ code blocks in
Options->Formatting menu, but there aren't any options about blank line +after+
blocks. I hope they are added in the Option menu.
※ Blank line after blocks:
* Class, Method, Function
* if, if~else, while, do~while, for
* swtich~case, enum, and etc
In addition, it would be better if there is additional option doesn't create
blank line if the block is end of parent block.
was:
Currently NetBeans doesn't support auto-formatting, and only manual formatting
is possible with format option through shortcut or Right click->Format. So I
suggest auto code formatting like this:
※ Adding auto-format triggers:
* Only to edited lines, not entire code
* Operate when semicolon or enter key is presssed
* Operate when parentheses/braces/brackets are matched (including code lines
inside the block and block header)
Next, there are some options about blank line +before+ code blocks in
Options->Formatting menu, but there aren't any options about blank line +after+
blocks. I hope they are added in the Option menu.
※ Blank line after blocks:
* Class, Method, Function
* if, if~else, while, do~while, for
* swtich~case, enum, and etc
In addition, it would be better if there is additional option doesn't create
blank line if the block is end of parent block.
> Auto Code Formatting
> --------------------
>
> Key: NETBEANS-297
> URL: https://issues.apache.org/jira/browse/NETBEANS-297
> Project: NetBeans
> Issue Type: Wish
> Components: editor - Formatting & Indentation
> Affects Versions: Next
> Environment: Windows 10
> Reporter: Hyeonwoo O
> Assignee: Hyeonwoo O
> Priority: Major
> Fix For: Next
>
>
> Currently NetBeans doesn't support auto-formatting, and only manual
> formatting is possible with format option through shortcut or Right
> click->Format. So I suggest auto code formatting like this:
> ※ Adding auto-format triggers:
> * Only to edited lines, not entire code
> * Operate when semicolon or enter key is presssed
> * Operate when parentheses/braces/brackets are matched (including block
> header and internal code lines)
> Next, there are some options about blank line +before+ code blocks in
> Options->Formatting menu, but there aren't any options about blank line
> +after+ blocks. I hope they are added in the Option menu.
> ※ Blank line after blocks:
> * Class, Method, Function
> * if, if~else, while, do~while, for
> * swtich~case, enum, and etc
> In addition, it would be better if there is additional option doesn't create
> blank line if the block is end of parent block.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists