-
Couldn't load subscription status.
- Fork 147
Description
Currently project preferences are stored in a folder named .settings this has the drawback that if one want to configure an aspect for a set of projects (e.g. formatter settings, compiler preferences, ...) one need to duplicate this (and keep them up to date) for each project. Also wen VCS comes into account the same files need to be versioned multiple times.
To mitigate this and given that most projects have some hierarchical nature (e.g the usual <projectroot>/plugins/<myproject>) I'd like to propose the following enhancement (using org.eclipse.jdt.core.prefs as an example):
- Given there is a file
.settings/org.eclipse.jdt.core.prefsnothing changes - Given there is no file
.settings/org.eclipse.jdt.core.prefsthen first a file.eclipse/org.eclipse.jdt.core.prefsis searched and if found that is used, if that file is not found, the parent folder is checked for this until the root is reached - If still no file is found
<workspace-root>/.eclipse/<project-name>/org.eclipse.jdt.core.prefsis searched as a last resort
This would allow to have a variety of different use cases:
- In cases where a user chooses to "enable project specific settings" for certain settings, one could add a new option to not store it in the project but in the workspace, e.g. if I want to prevent the noise if I open a project that normally do not store eclipse preferences.
- I might use this to enable some project specific settings for a set of projects e.g. by placing it in the
<projectroot>/plugins/.eclipsefolder. - I even configure some things on the root of the project e.g. placing a
<projectroot>/.eclipse/org.eclipse.core.resources.prefsto force UTF-8 for the usual source folders. - ...