Bug 578363 - Auto-Save on "error free code"?
Summary: Auto-Save on "error free code"?
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.22   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-25 00:29 EST by Christoph Laeubrich CLA
Modified: 2022-01-25 00:29 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.