You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Eric Barboni (Jira)" <ji...@apache.org> on 2021/03/25 16:25:00 UTC

[jira] [Commented] (NETBEANS-5502) Automatically format code when saved.

    [ https://issues.apache.org/jira/browse/NETBEANS-5502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17308797#comment-17308797 ] 

Eric Barboni commented on NETBEANS-5502:
----------------------------------------

Hi,

 You should try Tools -> Options -> Editor -> On save

From this point you can configure to format your file on save.

Hope it helps

> Automatically format code when saved.
> -------------------------------------
>
>                 Key: NETBEANS-5502
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5502
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: editor - Formatting &amp; Indentation, java - Editor, javafx - Editor
>    Affects Versions: 12.3
>         Environment: Windows 10, Apache NetBeans 12.3, Java 15.0.2
>            Reporter: Michal Rama
>            Priority: Major
>              Labels: code, editor, format, java, javafx
>
> Hello,
> Currently, the project can be formatted via the right button or cat shortcuts. However, if I save the project and have it formatted, I have to save it again.
> A feature with the ability to format the code along with the save would be useful.
> Thank you



--
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