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.
I've found that the editor doesn't remove trailing spaces in lines even when saving the source file. Trailing spaces have absolutely no significance, but can cause trouble when printing etc, so I would recommend they are removed.
well, we've been trying to avoid unnecessary changes since those may cause conflicts in version control systems. you are making a valid point though so I guess it will require feedback from other as well
moving to mobility component
There is a module "Remove Whitespace" which I think accomplishes exactly what is being asked for. If I remember correctly there was some mentioning of implementing in the module an option to invoke this feature upon saving a file. Guess it would solve the issue. Iwan
the module is described here http://blogs.sun.com/roller/page/scblog?entry=whitespace_tools_module_on_my Iwan, thank you for pointing it out. I think that it's more general issue therefore I'm reassigning to editor.
Please add an option to do this on saving a file. My actions when saving a file now consist of: 1. Remove Trailing Spaces 2. Fix Imports 3. Organize Imports It would be great if there was some way to automate this. I guess I could define a keyboard macro, but it just strikes me as something that the editor could be doing for me. I agree that the option needs to be defaulted to off for those that don't want it messing with version control. Rob
I would like to see this too or at least the ability to set a macro to it. Right now, you can't record a macro that contains a save action.
Fixed in 6.5, see issue #13063. *** This issue has been marked as a duplicate of 13063 ***