Bug 578363

Summary: Auto-Save on "error free code"?
Product: [Eclipse Project] JDT Reporter: Christoph Laeubrich <laeubi>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.22   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Christoph Laeubrich CLA 2022-01-25 00:29:49 EST
I can enable Auto-Save for all editors after a given time elapsed. As the preference page suggest, this might be problematic depending on editor type.

For java I found it is quite fast and I quite often do STRG+S after some actions (e.g. import a missing package) that seems unnecessary.

To extend the life-time of my keyboard-keys and make coding more convenient, it would be good to have an "auto save on error free code" option in JDT.

I would expect the feature to do the following:
- if there are error markers because the code is (not yet) valid, simply do nothing
- if the code is valid, perform a "pre-save" in the background (e.g. cleanup actions), if these complete before I further type, save the file, otherwise cancel the action and repeat with the new content.