[
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, Formatting->Blank Lines options about +C and C++ and C/C++ Header+ are
not sufficient in comparison with other languages. I hope following options are
added in the Blank Lines menu.
※ Blank line after blocks:
* Class, Method, Function
* if, if~else, while, do~while, for, try~catch~finally
* 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 block header
and internal code lines)
Next, Formatting->Blank Lines options about 'C', 'C++', and 'C/C++ Header' are
not sufficient in comparison with other languages. I hope following options are
added in the Blank Lines menu.
※ Blank line after blocks:
* Class, Method, Function
* if, if~else, while, do~while, for, try~catch~finally
* 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
> Labels: features
>
> 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, Formatting->Blank Lines options about +C and C++ and C/C++ Header+ are
> not sufficient in comparison with other languages. I hope following options
> are added in the Blank Lines menu.
> ※ Blank line after blocks:
> * Class, Method, Function
> * if, if~else, while, do~while, for, try~catch~finally
> * 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