Set up Eclipse workspace preferences once and use them everywhere!
Clones code style formatting as well as font, color & text editor settings located in
org.eclipse.jdt.core.prefs
org.eclipse.jdt.ui.prefs
org.eclipse.ui.editors.prefs
org.eclipse.ui.workbench.prefs
files from a directory or an existing workspace to all workspaces.
# export preferences
java -jar eclipstyle.jar export /path/to/ref/workspace /path/to/export/prefs
# clone previously exported preferences
java -jar eclipstyle.jar clone /path/to/import/prefs /path/to/all/workspaces
# export preferences from an existing workspace
java -jar eclipstyle.jar clone /path/to/ref/workspace /path/to/all/workspaces
# windows
java -jar eclipstyle.jar export D:\Dev\Workspaces\eclipstyle E:\Dropbox\eclipse_prefs
# unix
java -jar eclipstyle.jar export ~/dev/workspaces/eclipstyle ~/Dropbox/eclipse_prefs
# windows (clone from existing workspace)
java -jar eclipstyle.jar clone D:\Dev\Workspaces\eclipstyle D:\Dev\Workspaces
# unix (clone previously exported prefs)
java -jar eclipstyle.jar clone ~/Dropbox/eclipse_prefs ~/dev/workspaces
You can download the latest release here.
Feel free to import my formatter profile or preferences.
picocli for command line argument parsing.