Is there a way to export the settings defined in Window > Preferences
Dialog under XML > XML Files > Editor
in Eclipse 3.5 Galileo (Java EE Package)? And where do Eclipse stores these settings?
Now i got an eclipse_xml_format.epf
with the following content
/instance/org.eclipse.wst.xml.core/lineWidth=120
/instance/org.eclipse.wst.xml.core/indentationChar=space
/instance/org.eclipse.wst.xml.core/indentationSize=4
But i can't import this file!
Click File > Save As, and select the location where you want to save the file. , point to the arrow next to Save As, and then click Other Formats. In the File name box, type a name for the XML data file. In the Save as type list, click XML Data, and click Save.
Eclipse > Window > Preferences > Java > Code Style > Formatter: Choose Active Profile from the list. Edit. Export.
The file recording those XML settings is:
<workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.wst.xml.core.prefs
That is:
org.eclipse.wst.xml.core.prefs
,org.eclipse.core.runtime\.settings
directortySo even if you cannot export them directly, you can at least copy/merge that file with another workspace setting file, re-importing that way the XML settings;
That being said, if you export all your preferences, they are saved in an .epf file of your choice.
And all the lines beginning with /instance/org.eclipse.wst.xml.core
are interesting:
/instance/org.eclipse.wst.xml.core/indentationChar=space
So you can remove all the other lines, and then re-import this epf files with only the XML settings in it.
Note: for your "cleaned" export file to be reimported (at least with eclipse3.5), it ust contain the line file_export_version=3.0
(anywhere in the .epf
file).
#Thu Mar 11 13:33:16 CET 2010
/instance/org.eclipse.wst.xml.core/lineWidth=119
/instance/org.eclipse.wst.xml.core/indentationChar=space
/instance/org.eclipse.wst.xml.core/indentationSize=4
file_export_version=3.0
will be re-imported successfully
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With