问题
I want to add some default values for an eclipse plugin delivered as a whole eclipse product through plugin_customization.ini.
If I want by default to have the Build automatically disabled, I write in plugin_customization.ini the folowing line:org.eclipse.core.resources/description.autobuilding=false
How can I find the org.eclipse..../.../ setting name for disabling the spell checking for example? What about any other setting?
回答1:
The settings are stored in .pref files in the workspace subdirectory .metadata/.plugins/org.eclipse.core.runtime/.settings:
- Before starting your application make a copy of the
.settingsfolder - Start your application, change the setting and then exit the application
- Compare the current
.settingsfolder with the copied from step 1
In your case, disabling spelling will add the line spellingEnabled=false to org.eclipse.ui.editors.prefs, so the line for plugin_customization.ini you are looking for is org.eclipse.ui.editors/spellingEnabled=false.
来源:https://stackoverflow.com/questions/50021354/find-eclipse-setting-name-to-set-it-in-plugin-customization-ini