This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 213161

Summary: Save actions
Product: editor Reporter: javydreamercsw <javydreamercsw>
Component: Actions/Menu/ToolbarAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.1.2   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description javydreamercsw 2012-05-29 13:55:09 UTC
In Eclipse, you can configure different things to happen every time a file is saved, such as formatting the code, fixing imports, cleaning up white space, etc. This I have not been able to do in NetBeans.
Comment 2 markiewb 2013-08-10 14:48:39 UTC
NetBeans 7.3 introduces SaveActions. #140719

For example NB7.4 provides the following save actions for the java editor
* Reformat 
* Remove trailing whitespace
* Remove unused imports
* Organised imports

I propose to open separate issues if you like to see more.

*** This bug has been marked as a duplicate of bug 140719 ***