For resetting preferences, the handling of the preference objects needs to be changed.
This issue describes the steps to do.
Note
We created sub issues for each prefernce
[!IMPORTANT
Sometimes, there could be more work to do. If the preferences are more complex. Just try to dive into the topic.
PR showing the changes for WorkspacePreferences: #13894
In JabRefGui/CliPreferences remove (but keep the values in mind)
In XXXPreferences class
Add private default constructor (use the values from the step before)
In JabRefGui/CliPreferences class
Add fromBackingStore method (Note that the screenshot has lowLevelApi, but we want BackingStore
Modify getXXXPreferences method
Add to clear / importPreferences method
Pick one preference from
private EntryEditorPreferences entryEditorPreferences ;
private MergeDialogPreferences mergeDialogPreferences ;
private AutoCompletePreferences autoCompletePreferences ;
private CoreGuiPreferences coreGuiPreferences ;
private WorkspacePreferences workspacePreferences ;
private UnlinkedFilesDialogPreferences unlinkedFilesDialogPreferences ;
private ExternalApplicationsPreferences externalApplicationsPreferences ;
private SidePanePreferences sidePanePreferences ;
private GroupsPreferences groupsPreferences ;
private SpecialFieldsPreferences specialFieldsPreferences ;
private PreviewPreferences previewPreferences ;
private PushToApplicationPreferences pushToApplicationPreferences ;
private NameDisplayPreferences nameDisplayPreferences ;
private MainTablePreferences mainTablePreferences ;
private ColumnPreferences mainTableColumnPreferences ;
private ColumnPreferences searchDialogColumnPreferences ;
private KeyBindingRepository keyBindingRepository ;
private CopyToPreferences copyToPreferences ;
private NewEntryPreferences newEntryPreferences ;
private DonationPreferences donationPreferences ;
and handle it.
For resetting preferences, the handling of the preference objects needs to be changed.
This issue describes the steps to do.
Note
We created sub issues for each prefernce
PR showing the changes for
WorkspacePreferences: #13894In JabRefGui/CliPreferences remove (but keep the values in mind)

In XXXPreferences class
In JabRefGui/CliPreferences class
lowLevelApi, but we wantBackingStoreJabRefCliPreferences.Pick one preference from
jabref/jabgui/src/main/java/org/jabref/gui/preferences/JabRefGuiPreferences.java
Lines 227 to 246 in 92cc09d